AndroidWorkarounds.props 812 B

12345678910111213141516
  1. <Project>
  2. <ItemGroup Condition="'$(AndroidApplication)' == 'true'">
  3. <!-- WORKAROUND: The packages below are transitively referenced by System.Memory,
  4. but Xamarin.Android applications need the newest versions directly referenced for the linker. -->
  5. <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0" />
  6. <PackageReference Include="System.Buffers" Version="4.5.0" />
  7. </ItemGroup>
  8. <Target Name="_RemoveNonExistingResgenFile" BeforeTargets="CoreCompile" Condition="'$(_SdkSetAndroidResgenFile)' == 'true' And '$(AndroidResgenFile)' != '' And !Exists('$(AndroidResgenFile)')">
  9. <ItemGroup>
  10. <Compile Remove="$(AndroidResgenFile)"/>
  11. </ItemGroup>
  12. </Target>
  13. <PropertyGroup>
  14. <DesignTimeBuild>false</DesignTimeBuild>
  15. </PropertyGroup>
  16. </Project>