I am attempting to convert my Xamarin project to use .net Standard 2.
However when I build I get a few compile time exceptions:
Those ddl indeed does not exist in the Android bin folder. If I copy the dlls in manually the build error goes away.
I am not that familiar with the new .net standard stuff to know if these libraries are maybe not being copied over because of incompatibilities.
How do I fix this?
EDIT: The nuget packages above is only added to the common std and pcl library not the Android 1. This worked with the pcl version so I assumed similar behavior with the std version. I had to install it into the android version to make it work. Why was necessary in the std and not the pcl?
NET 5 and all future versions will continue to support . NET Standard 2.1 and earlier.
You cannot consume a . Net Standard 2.1 assembly in any . Net Framework Version because the . NET Framework (even the last ever version, 4.8) does not implement .
Go to Tools > Extensions and Updates... and click on the Installed list to check that the NuGet Package Manager for Visual Studio is at least version 2.8. 5. If it is older, click on the Updates list to download the latest version. Once you've updated the NuGet package to Xamarin.
You need to add the following NuGet packages to your Xamarin.Android project:
IdentityModel
v1.0.0.0
XLabs.Forms
v2.0.5782
I'm not sure why the PCL implementation worked without these packages in your Xamarin.Android project. Likely, the package creators are using Bait and Switch with the netstandard implementation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With