Skip to content

Commit

Permalink
Added fix for netstandard/android. See dotnet/android#1162 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfedotovsky committed Mar 9, 2018
1 parent b2d55bf commit f697191
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DotNetRu.Android/DotNetRu.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,9 @@
<ItemGroup>
<None Include="FodyWeavers.xml" />
</ItemGroup>
<ItemGroup>
<Content Include="android-netstandard-fix.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="android-netstandard-fix.xml" />
</Project>
13 changes: 13 additions & 0 deletions DotNetRu.Android/android-netstandard-fix.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Workaround for https://github.com/xamarin/xamarin-android/issues/1162 -->
<Project>
<Target Name="ReplaceRefAssemblies" AfterTargets="_ResolveAssemblies">
<ItemGroup>
<ResolvedAssembliesFixedWindows Include="@(ResolvedAssemblies->Replace('\ref\','\lib\'))" />
<ResolvedAssembliesFixedUnix Include="@(ResolvedAssemblies->Replace('/ref/','/lib/'))" />
<ResolvedAssembliesFixed Include="@(ResolvedAssembliesFixedWindows)" Condition="@(ResolvedAssembliesFixedWindows) != @(ResolvedAssemblies)" />
<ResolvedAssembliesFixed Include="@(ResolvedAssembliesFixedUnix)" Condition="@(ResolvedAssembliesFixedUnix) != @(ResolvedAssemblies)" />
<ResolvedAssemblies Remove="@(ResolvedAssemblies)" />
<ResolvedAssemblies Include="@(ResolvedAssembliesFixed)" />
</ItemGroup>
</Target>
</Project>

0 comments on commit f697191

Please sign in to comment.