-
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
Packing iOS binding projects with NativeReference fails #176
Comments
mattleibow
added a commit
to mattleibow/MSBuildSdkExtras
that referenced
this issue
Aug 6, 2019
The `@(NativeReference)` is used for other things in .NET, so make sure to remove the incorrect file. novotnyllc#176
Before closing this out @mattleibow can you please take a look at the warning that gets generated now with this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an iOS binding project that uses
@(NativeReference)
to pull in the frameworks. If I run aPack
, I get this error:My first attempt was to just create that file ('cause I be crazy). That results in another failure:
So I had a look, it appears to be a "conflict" of .NET (desktop) properties with Xamarin iOS properties. Both use the
NativeReference
item group, but for different things:https://github.com/microsoft/msbuild/blob/v16.2.32702/src/Tasks/Microsoft.Common.CurrentVersion.targets#L5548-L5554
My fix so far is to just add this in my project file:
I am not sure if there is any other way to avoid this because there aren't actual hooks that I can see. And, I think we should be safe because the
Native.xxx.manifest
file is not an iOS thing.I have a sample here:
https://github.com/mattleibow/XamarinNativeReferencesBug
This issue also needs to be addressed in MSBuild directly: dotnet/msbuild#4584
The text was updated successfully, but these errors were encountered: