I tried to add GuruX nugets into a blank Xamarin project created with Visual Studio 2022 but some of them couldn't be added into the Android project because of compatibility issues, like Gurux.DLMS, Gurux.Service, Gurux.SMS and others.
Example of error:
Severity Code Description Project File Line Suppression State
Error NU1202 Package Gurux.DLMS 9.0.2210.301 is not compatible with monoandroid12.0 (MonoAndroid,Version=v12.0). Package Gurux.DLMS 9.0.2210.301 supports:
- net46 (.NETFramework,Version=v4.6)
- net472 (.NETFramework,Version=v4.7.2)
- net6.0 (.NETCoreApp,Version=v6.0)
- net6.0-windows7.0 (.NETCoreApp,Version=v6.0)
- netcoreapp3.1 (.NETCoreApp,Version=v3.1) GuruXTest.Android C:\GuruXTest\GuruXTest.Android\GuruXTest.Android.csproj 1
I was able to add 9.0.2201.2801 GuruX.DLMS nuget but not more recent versions.
If I remember right, there were some problems with .Net core and Android projects and for that reason UWP project was used with some Android projects. I'll check if is this still the issue with .Net code 6 or if was it only with .Net core 5.
Is your project Mobile App, Android App or .Net MAUI?
Hi Jones,
Hi Jones,
Nuget packet manager doesn't work. Get the latest version from Gurux.DLMS. Then add UWP project for your project and add reference.
I don't think that anyone is using Gurux.Service within Android and I don't know if it's possible to use MSQSL or MySQL in Android.
Gurux.SMS doesn't work with phones because Microsoft hasn't added support for serial ports, but it should work in Linux.
BR,
Mikko
Hi Mikko,
Hi Mikko,
I am using only Android so why should I add a UWP project?
And about Xamarin Android, how am I supposed to do it?
Only up to 9.0.2201.2801 GuruX.DLMS NuGet I was able to add.
BR,
Jones
Hi,
Hi,
If I remember right, there were some problems with .Net core and Android projects and for that reason UWP project was used with some Android projects. I'll check if is this still the issue with .Net code 6 or if was it only with .Net core 5.
Is your project Mobile App, Android App or .Net MAUI?
BR,
Mikko
Hi,
Hi,
It will be a Xamarin Forms Android app.
BR,
Jones
I was able to install Gurux
I was able to install Gurux.DLMS nuget version 9.0.2211.702 into my Xamarin project.