Nuget 包不兼容,但在支持列表中 (StrawberryShake.Tools)
在创建新的 .NET 5 项目(在 VS2019 中)并尝试安装 nuget-package StrawberryShake.Tools 后,我收到此消息。这看起来有点奇怪,因为它既说它与“net5.0 (.NETCoreApp,Version=v5.0)”兼容,又不兼容
错误 NU1202 软件包 StrawberryShake.Tools 12.6.0 不兼容 使用net5.0(.NETCoreApp,版本=v5.0)。包 StrawberryShake.Tools 12.6.0支持:
- net5.0(.NETCoreApp,版本=v5.0)/任何
- net6.0(.NETCoreApp,版本=v6.0)/任何
- netcoreapp3.1(.NETCoreApp,版本=v3.1)/任何
I got this message after creating a new .NET 5-project (in VS2019) and trying to install nuget-package StrawberryShake.Tools. This seems a bit strange, since it says both that it is and it isnt compatible with "net5.0 (.NETCoreApp,Version=v5.0)"
Error NU1202 Package StrawberryShake.Tools 12.6.0 is not compatible
with net5.0 (.NETCoreApp,Version=v5.0). Package StrawberryShake.Tools
12.6.0 supports:
- net5.0 (.NETCoreApp,Version=v5.0) / any
- net6.0 (.NETCoreApp,Version=v6.0) / any
- netcoreapp3.1 (.NETCoreApp,Version=v3.1) / any
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,所以我按照 官方安装指南 进行操作。步骤如下:
I had the same problem, so I followed the official installation guide instead. The steps are as follows:
dotnet new tool-manifest
.dotnet tool install StrawberryShake.Tools --local
. The nuget package has now been installed in ~/.nuget/packages and may be used in the project.