-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a workaround for #176 #177
Conversation
The `@(NativeReference)` is used for other things in .NET, so make sure to remove the incorrect file. novotnyllc#176
Happy to merge, but any chance you can add a test case/repro to the test projects? |
@@ -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> | |||
|
|||
<!-- A workaround for https://github.com/microsoft/msbuild/issues/4584 and resolves https://github.com/onovotny/MSBuildSdkExtras/issues/176 --> | |||
<Target Name="_RemoveNativeReferencesManifest" Condition="'$(IsApplePlatform)' == 'true'" AfterTargets="BuiltProjectOutputGroup"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this to exclude the binding projects test because @(NativeReference)
is also valid in non-binding projects.
Is this ready to go now? |
@@ -32,6 +32,10 @@ | |||
<Reference Include="System.Xml" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition="'$(TargetFramework)' == 'xamarin.ios10'"> | |||
<NativeReference Include="Resource1.resx" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual contents of the file is unimportant because it is only used at app link-time. Also, in order for this test to pass/fail, you need to pack
. The issue does not arise in build
because iOS never references the "generated" file. But, the pack
target does when it tries to pack it.
I think we are good to go! |
The
@(NativeReference)
is used for other things in .NET, so make sure to remove the incorrect file. #176Sample bug here: https://github.com/mattleibow/XamarinNativeReferencesBug