Browse Source

Android build workaround

Nikita Tsukanov 6 years ago
parent
commit
d720d32631
1 changed files with 5 additions and 0 deletions
  1. 5 0
      build/AndroidWorkarounds.props

+ 5 - 0
build/AndroidWorkarounds.props

@@ -5,4 +5,9 @@
     <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.1" />
     <PackageReference Include="System.Buffers" Version="4.5.0" />
   </ItemGroup>
+  <Target Name="_RemoveNonExistingResgenFile" BeforeTargets="CoreCompile" Condition="'$(_SdkSetAndroidResgenFile)' == 'true' And '$(AndroidResgenFile)' != '' And !Exists('$(AndroidResgenFile)')">
+    <ItemGroup>
+      <Compile Remove="$(AndroidResgenFile)"/>
+    </ItemGroup>
+  </Target>
 </Project>