-
Notifications
You must be signed in to change notification settings - Fork 492
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
Linker issues when using with Xamarin Android project #197
Comments
@ryan-z-johnson was looking at similar issues yesterday. One idea that we have about this is that the PCL library may interfere and so I will be removing it part of the next release (see #138 ). |
Yea that's kind of how I was able to fix it. Basically what I did to fix for now is
And now everything seems to be running |
After removing PCL, this is still failing. More investigation is required to understand why the Xamarin compiler is throwing this error. The ICloneable appears to be type-forwarded by one of the libraries which causes some conflicts. I wasn't able to repro in "Debug" mode.
|
By latest VS does that include the Preview builds as well? Talking to one of the Xamarin folks he had told me there were some improvement there to try |
@PureWeen I didn't try the preview Xamarin build and I'm not yet certain this is a bug on our side or Xamarin. I did successfully test Xamarin/iOS sample and that worked as expected. |
Tentative workaround from @PureWeen:
<TargetFramework>netstandard2.0</TargetFramework>
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10+UAP10;</PackageTargetFallback>
</PropertyGroup> |
External issue: Azure/azure-amqp#87 We need to wait for an updated NuGet for AMQP. |
@PureWeen I can't repro this anymore after removing PCL (v1.6.1+). While a new NuGet for Amqp is not yet available, I'm testing a build from their master. I've tried a simpler setup where I've referenced the AMQP 1.3 library then the (locally built) 1.4 and in both cases the Android application built with AOT (Release) without any issues. Closing for now. Please reopen if you still see this issue with the latest version (1.6.2). |
Yea I'm still having the issue with the following verions
The settings that make the issue come up for me are to set the Linking to |
I still have this issue even after selecting "Sdk Assemblies Only". This is with Amqp 2.2.0. Not having the ability to build Release is a huge problem. |
Thanks for the notification @TheLever . Reopening this for now until I get some time to resume the Xamarin sample and test infra. Meanwhile, could you give the latest version a try (1.7.0, etc)? I've removed all PCL #ifdefs and removed the uap10.0 builds in favor of netstandard2.0. |
it looks like with the latest 15.6 tooling it also gives better error messages when the linker fails. I installed 1.7.0 and now I am able to compile but unfortunately I keep getting this exception when trying to deploy
Still looking around seeing if there's someway to get around this |
Which looks like a dependency that was added in version 1.7.0 |
Did you guys found any solution? |
For my ConfigurationManager error I just ended up pulling down the source and recompiling that line of code out |
@PureWeen and @iamrmin : The linker problems with Xamarin mentioned here are resolved with the latest Visual Studio update. On setting the Android linking to either 'SDK Assemblies Only' or 'SDK and User Assemblies' and referencing our NuGet packages allows the project to be complied in both Debug and Release mode. |
Awesome!! I'll give this a try next week |
Everything looks good Now I just need to wait for app center tooling to catch up :-) |
…Azure#197) Scripts to create Debian build containers, scripts to build packages. Build container packaging has been reworked. Added README Debian 8 installs and runs. some custom contrib files for debian8
I'm not sure if this is an issue with these libraries, myself, or Xamarin tooling
But I'm getting errors like this when trying to use Microsoft.Azure.Devices.Client with a PackageReference based Xamarin.Android project
I've also seen this
I have a reproduction of the issue here
https://github.com/PureWeen/ReactiveUiEvents/tree/linkerproblem
just grab the linkerproblem branch and you'll hopefully see the issue
I'm using VS 15.4 on Windows
The text was updated successfully, but these errors were encountered: