Does the current preview of net5.0 (5.0.100-preview.8.20417.9) with Visual Studio 2019 preview (Version 16.8.0 Preview 2.1) supports a solution that contains a C# net5.0 library and a Xamarin.Forms project (iOS, android) that is using this net5.0 library project as reference?
screenshot of mentioned solution
To me the preview 8 - release info is a bit unclear in this direction.
...We expect to deliver the rest of the vision, largely focused on Xamarin (iOS and Android), with .NET 6.0. ...
Does this mean, the mentioned use case of my question will be supported with net6.0?
Answers
To test the .Net 5.0, try using the lastest TargetFramework.
Right click the Android project -> Properties -> Application, change the TargetFramework to Android 10 or 11.
Will not do the trick as you can see in the screenshot. I also tried multiple cleans, rebuilts and VS Studio restarts. Did you managed it with net5.0? If yes how does your solution look like?
To update the .Net version, you need to download the package and install it on the system.
Check the links:
https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-5/
https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.7.md
Check this : https://github.com/xamarin/Xamarin.Forms/issues/12112