-
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
Unable to install Microsoft.Azure.Devices in a Xamarin Forms android project #106
Comments
@albaek75 - Microsoft.Azure.Devices 1.2.6 is our first package that supports .NetStandard (version 1.3 is what we have). |
@tameraw - Any Solutions? |
@sarsijravi - Please try with a Profile 7 and let us know if still having issues. |
@tameraw |
@albaek75 - we'll investigate the issue. Thanks. |
@sarsijravi sorry for the long delay. I have been able to reproduce your issue. The way we are encouraging people who are using a mono based platform is to create a .NetStandard 1.3 class library and add the nugget package to that, and reference the library in your Xamarian.Android application. Here is a GitHub Repo with the structure I am talking about. https://github.com/ryan-z-johnson/AzureIoTXamarin If you have any more questions please let me know. |
We're tracking multiple issues caused by the PCL libraries. The decision was to remove the PCL binary from our next release. Tentatively closing this as a duplicate of #138 . |
@ryan-z-johnson
It throws: |
@coltonf93 I've seen issues when either Xamarin or Visual Studio are not up to date. |
@CIPop I'm modifying/building the recommended workaround referenced above with all the latest released versions. Still no luck.
Do you know if anyone has been able to build a functioning android application with an implementation of the device client library, not just the reference? I could be missing something, but as soon as you implement the DeviceClient class in the shared library, the build fails. |
@coltonf93 We're not supporting PCL at all in either LTS or master. After upgrading VS and Xamarin, you will need to also switch to the latest Xamarin.Forms template: Select the ".NET Standard" Code Sharing Strategy: Reference the latest non-preview Azure SDK DeviceClient within the shared project. A Debug build should work for Android. If this doesn't work, please create a new issue with the details. |
I followed your recommendation, and it leads to this exact issue. I'll just follow up there. |
Thanks @coltonf93 ! Let's continue in #373. |
I am facing the same issue. Any solution for this. (Microsoft.Azure.Devices.Client.PCL) Severity Code Description Project File Line Suppression State |
@MujasSam We don't support the PCL binary anymore. |
Hi
I am getting this error when trying to install Microsoft.Azure.Devices to Xamarin Forms android project.
Error Could not install package 'Microsoft.Azure.Devices 1.2.4'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v7.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Is there any plans to add this support?
The text was updated successfully, but these errors were encountered: