-
Notifications
You must be signed in to change notification settings - Fork 118
Xamarin Linker issue after upgrading to Nuget 3.0.1.16 #472
Comments
@sameertotey |
Having same issue with Microsoft.Azure.EventHubs v2.1.0. The ideal solution would be for Xamarin .NET Standard solutions to be able to reference Microsoft.Azure.EventHubs and build in release mode. |
Hi, what is the solution for this? Or is there a workaround? I'm trying to use the Microsoft.Azure.EventHubs 2.1 nuget in a .Netstandard 2.0 project used by Uwp and iOS apps. I'm afraid I won't be able to use this nuget, which is a major drawback. @nemakam ? |
Also experiencing this issue with Xamarin Forms, works fine with the Android build though. UPDATE: I resolved it by setting the 'Linker behavior' option in the iOS project settings to 'Link All' |
Changing to "Link All" got the project to build for me, but then would fail when calling To resolve this for me I had to add the following argument in the mtouch.
|
I am having this issue with Xamarin.IOS. I am referencing Microsoft.Azure.ServiceBus v. 3.1.1 from a class library that is .Net Standard 2.0. The Xamarin.IOS project then references the class library. Xamarin.ios is set to Dont Link I get the following build error Mono.Linker.LoadException: Error while processing references of 'NextIDClientiOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Linker.LoadException: Error while processing references of 'NID.Client.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Linker.LoadException: Error while processing references of 'NID.Client.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Azure.ServiceBus, Version=3.1.1.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Azure.ServiceBus, Version=3.1.1.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c' |
I'm running into this problem as well, after referencing the EventHub .NET standard library in a Xamarin app. However, the suggested workaround does not work, as it actually disables the plugins that are linked in the project. Has anyone found a solution/workaround to this? |
Half a year later - and the issue still has not been resolved.. Just got it too when upgrading EventHubs nuget for Xamarin.Forms solution to v 2.2.1 |
Microsoft.Azure.EventHubs also has a dependency on Microsoft.Azure.Services.AppAuthentication, and so I'm having this issue using EventHub .NET standard library as well. Here is my example project: https://github.com/tele-bird/eventhub-poc |
Using the TaskyPortable project as a baseline, I'm able to reproduce this problem:
I found that the issue was caused by two bad reference paths that were added to my iOS projects:
I found through experimentation (editing the csproj by hand) that the Xamarin.iOS10 folder was wrong. It should use the netstandard1.3 folder instead. And now the linker is successful. Here are the new paths that I use:
|
Actual Behavior
MTOUCH: Error MT2002: Failed to resolve "Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate" reference from "Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.17.2.31801, Culture=neutral, PublicKeyToken=31bf3856ad364e35" (MT2002)
Expected Behavior
Versions
Xamarin
.Net Standard 2.0
3.0.1.16
We cannot install nuget 3.0.0 again because of dependency on Microsoft.Azure.Services.AppAuthentication which cannot be satisfied.
The text was updated successfully, but these errors were encountered: