当前位置:网站首页>error NU1202: Package Volo. Abp. Cli 5.2.1 is not compatible with netcoreapp3.1

error NU1202: Package Volo. Abp. Cli 5.2.1 is not compatible with netcoreapp3.1

2022-06-10 05:49:00 Hell highway

Use installation Abp Of Cli Command of tools dotnet tool install -g Volo.Abp.Cli, The error information is as follows :
 Insert picture description here
from dotnet --list-runtimes As you can see from the, I have installed .net core3.1.net5 and .net6 , So why install Abp.Cli Will report a mistake ?

Use dotnet --info View the current dotnet Version of the tool , yes 3.1.415 as follows :
 Insert picture description here
Installed by Abp.Cli It is known from the error information of , We need to use .net 6 Version of dotnet To install , So will C:\Users\Administrator In the catalog global.json The version in the document is changed as follows :

 Insert picture description here
Check the current... Again dotnet Version of , reinstall Abp.Cli, as follows :
 Insert picture description here
Refer to the official Microsoft documentation :https://docs.microsoft.com/zh-cn/dotnet/core/versions/selection

原网站

版权声明
本文为[Hell highway]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090959553472.html