简体   繁体   English

如何在Mono项目中安装4.5.2 nuget包?

[英]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. 我正在将Xamarin Studio 6.3与Mono 5.4.1.6一起用于Raspberry Pi 3项目。 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: 我需要安装Unosquare.Raspberry.IO C#/ Mono API以与Raspberry Pi进行接口,但是当我添加软件包时,出现此错误:

Could not install package 'Unosquare.Swan 0.16.0'. 无法安装软件包“ 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. 您正在尝试将此软件包安装到以'.NETFramework,Version = v4.5'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the package author. 有关更多信息,请与软件包作者联系。

The package requires .NET framework 4.5.2 . 该软件包需要.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". 根据Mono-Project的说法,Mono应该与.NET 4.7兼容/等效,但是在Xamarin中,最新的可用目标框架是“ 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. 我想我必须尝试在受支持的框架中重建软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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