Unable to load the service index for source https://api.nuget.org/v3/index.json in VS2017?

前端 未结 8 1929
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 03:27

I am getting This error:

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while send

8条回答
  •  自闭症患者
    2020-12-03 03:56

    Another method - a workaround - Just do it manually!

    I gave up all solutions provided in Github an SO.
    Checking the Manage .NET project and item templates docs I just found out that I can install a package locally.

    So if anyone is struggling with this, just download .nupkg the package from the source and use the following command

    dotnet new -i c:\some-folder\some-package.nupkg
    

    How to download a package manually

    1. Go to Nuget.org
    2. Search for your package and click to see the details
    3. Locate the Download package link, located at the Info section.
    4. Use the command shown above. Cheers! Package installed!

提交回复
热议问题