简体   繁体   中英

How to install 4.5.2 nuget package in Mono project?

I'm using Xamarin Studio 6.3 with Mono 5.4.1.6 for a Raspberry Pi 3 project. I need to install Unosquare.Raspberry.IO C#/Mono API for interfacing with the Raspberry Pi, but when I am adding the package, I get this error:

Could not install package 'Unosquare.Swan 0.16.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

The package requires .NET framework 4.5.2 . According to Mono-Project , Mono should be compatible/equivalent to .NET 4.7 , but in Xamarin the latest target framework available is "Mono / .NET 4.5".

So, is it possible to install/use this package?

It seems it is not possible. I think I have to try rebuilding the package in the supported framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM