error NU1301: Failed to retrieve information about 'volo.abp.cli' from remote source 'https://www.myget.org/feed/Packages/aspnetcoremodules/FindPackagesById()?id='volo.abp.cli'&semVerLevel=2.0.0'.

today i come across an error when install the abp from the command line

     

 

 after refer to https://github.com/abpframework/abp/issues/2003

I do below test

1. use   dotnet tool install -g Volo.Abp.Cli --ignore-failed-sources   

    

 

 and the abp will be successed installed

    

 

 2. use  dotnet tool uninstall -g Volo.Abp.Cli   to unistall abp

open Visual studio > Tools > Options > Nuget Packages Manager > Package sources

uncheck all items except the nuget.org 

    

 

this setting is actually saved in the file  C:\Users\Gavin\AppData\Roaming\NuGet\NuGet.Config

     

 

 then install the abp again and this time it does not have error  

    

 

 

reference

https://blog.walterlv.com/post/add-custom-nuget-source

posted on 2022-12-17 16:43  thegavincheng  阅读(417)  评论(0编辑  收藏  举报