Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Is it possible to get Microsoft.Azure.Devices SDK working on Xamarin.Forms PCL or .NetStandard?

$
0
0

Xamarin.Forms PCL

Installing Microsoft.Azure.Devices 1.3.2 on Portable Class Library (Windows 8/8.1 removed as targets)

Could not install package 'Microsoft.Azure.Devices 1.3.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile49', but the package does not contain any assembly references or content files that are compatible with that framework.

Installing Microsoft.Azure.Devices 1.3.2 on .Droid.

Could not install package 'System.Threading.Overlapped 4.3.0'. 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.

Installing Microsoft.Azure.Devices 1.3.2 on .iOS.

Could not install package 'System.Threading.Overlapped 4.3.0'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework.

Xamarin.Forms .NetShared

Installing Microsoft.Azure.Devices 1.3.2 on .NetShared Library

Success.

Referencing Microsoft.Azure.Devices library in .NetStandard class (using Microsoft.Azure.Devices';), adding short snippet of code and rebuilding project.

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Azure.Devices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Microsoft.Azure.Devices.dll'

Installing Microsoft.Azure.Devices 1.3.2 on .Droid

Could not install package 'System.Threading.Overlapped 4.3.0'. 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.


I'm including .Netstandard Xamarin.Forms project with Android. I'm really baffled as to why I can't get this working. Not sure whether I'm missing something or there's some sort of an issue on Azure SDK side.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>