Skip to content

Commit

Permalink
Add a workaround for #176
Browse files Browse the repository at this point in the history
The `@(NativeReference)` is used for other things in .NET, so make sure to remove the incorrect file.

#176
  • Loading branch information
mattleibow committed Aug 6, 2019
1 parent 6a55d19 commit a2dda44
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/MSBuild.Sdk.Extras/Build/LanguageTargets/Xamarin.targets
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@
<Error Text="The Binding Project for $(_SdkTargetPlatformName) is only supported with only C#, not with $(_SdkLanguageSourceName). Please change the project to C# to use the Bindings Project.'"/>
</Target>

</Project>
<!-- A workaround for https://github.com/microsoft/msbuild/issues/4584 -->
<Target Name="_RemoveNativeReferencesManifest" Condition="'$(IsBindingProject)' == 'true' AND '$(IsApplePlatform)' == 'true'" AfterTargets="BuiltProjectOutputGroup">
<ItemGroup>
<_BuiltProjectOutputGroupOutputIntermediate Remove="$(OutDir)$(_DeploymentTargetApplicationManifestFileName)" />
<BuiltProjectOutputGroupOutput Remove="$(ProjectDir)$(OutDir)$(_DeploymentTargetApplicationManifestFileName)" />
</ItemGroup>
</Target>

</Project>

0 comments on commit a2dda44

Please sign in to comment.