After upgrading to the latest version of VS Community for Mac, my project no longer compiled. Also, I uninstalled and installed VS 2019, which also doesn't work. I get the following build error:
The primary reference "Plugin.Fingerprint" could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile111".
I noticed many people got this error from this same library in the past but none of the solutions worked for me. The Target Framework for my project was set to .NET Portable (PCL 4.5 Profile111).
When I changed the Target Framework to .NET Standard, I got many more errors like:
Package XLabs.Platform 2.0.5782 is not compatible with netstandard1.5 (.NETStandard,Version=v1.5). Package XLabs.Platform 2.0.5782 supports:
- monoandroid (MonoAndroid,Version=v0.0)
- portable-net45+win8+wp8 (.NETPortable,Version=v0.0,Profile=Profile78)
- portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
- wp8 (WindowsPhone,Version=v8.0)
- wpa81 (WindowsPhoneApp,Version=v8.1)
- xamarinios10 (Xamarin.iOS,Version=v1.0)
Needless to say, I'm open to many suggestions. I've tried to go back to a previous version of VS for Mac but can't find them. Also, TIme Machine wasn't enabled so I can't rollback the machine. As you can see from the error, switching from .NET Portable to .NET Standard caused even more errors. I've also tried deleting bin/obj/package folders, clean, rebuild etc. None of that has worked.
Any suggestions would be greatly appreciated.