使用'.NETFramework,Version = v4.6.1'而不是项目目标框架.NETCoreApp,Version = v2.0还原了软件包'SassAndCoffee.Core 1.0.0' [英] Package 'SassAndCoffee.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework .NETCoreApp,Version=v2.0
问题描述
我已经制作了.net core 2.0 Web应用程序.我使用NUGET添加了SassAndCoffee.Core -v 1或当前版本,然后出现此错误:
严重性代码描述项目文件行抑制状态警告NU1701软件包'SassAndCoffee.Core 1.0.0'已使用'.NETFramework,Version = v4.6.1'代替项目目标框架'.NETCoreApp,Version = v2.0'恢复.该软件包可能与您的项目不完全兼容.
我该如何解决?
似乎作者没有更新
I have made .net core 2.0 web app. I have added SassAndCoffee.Core -v 1 or current version using NUGET and then I get this error:
Severity Code Description Project File Line Suppression State Warning NU1701 Package 'SassAndCoffee.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
How do I fix this?
It seems like author did not update the package since 5/16/2013. The latest package 2.1.1
is not compatible with .NET Core.
However, if you do not plan to host in cross platform such as Linux, then you can still create ASP.NET Core Web App using Full .NET Framework. Then, you can reference SassAndCoffee.Core
.
Otherwise, you'll have to contact author or fork it from github and make it compatible with .NET Standard
.
这篇关于使用'.NETFramework,Version = v4.6.1'而不是项目目标框架.NETCoreApp,Version = v2.0还原了软件包'SassAndCoffee.Core 1.0.0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!