Microsoft.AspNetCore.SpaTemplates will not install

Trying to follow this blog post where I have the correct SDK and node installed.

Running the command dotnet new --install Microsoft.AspNetCore.SpaTemplates::*gives me an error:

Restoring packages for C: \ Users \ xxxx.templateengine \ dotnetcli \ v1.0.4 \ scratching \ restore.csproj ... Retrying "FindPackagesByIdAsyncCore" for source ' https: // ournugetserver / httpAuth / app / nuget / v1 / FeedService. svc / FindPackagesById ()? id = 'Microsoft.NETCore.App' '. The response status code does not indicate success: 401 (unauthorized).
Retrying "FindPackagesByIdAsyncCore" for source ' https: //ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById ()? Id = ' Microsoft.AspNetCore.SpaTemplates ''. The response status code does not indicate success: 401 (unauthorized).
Retrying "FindPackagesByIdAsyncCore" for source ' https: // tcypwv01 / httpAuth / app / nuget / v1 / FeedService.svc / FindPackagesById ()? id ='Microsoft.AspNetCore.SpaTemplates'. The response status code does not indicate success: 401 (unauthorized).
Retrying "FindPackagesByIdAsyncCore" for source ' https: //ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById ()? Id = ' Microsoft.NETCore.App ''. The response status code does not indicate success: 401 (unauthorized). C: \ Program Files \ dotnet \ sdk \ 1.0.4 \ NuGet.targets (97.5): error: crash to get information about "Microsoft.NETCore.App" from remote source ' https: // ournugetserver / httpAuth / app /nuget/v1/FeedService.svc/FindPackagesById()?id= 'Microsoft.NETCore.App' '. [C: \ Users \ xxxxx.templateengine \ dotnetcli \ v1.0.4 \ scratch \ restore.csproj] C: \ Program Files \ dotnet \ sdk \ 1.0.4 \ NuGet.targets (97.5):error:
The response status code does not indicate success: 401 (unauthorized). [C: \ Users \ xxxxx.templateengine \ dotnetcli \ v1.0.4 \ scratch \ restore.csproj]

This seems to be related to our internal nuget server. I am using VS 2017. Looking for a way to make it ignore our nuget server or make it use the correct one?

+4
source share
2 answers

Nuget. nuget.org(https://www.nuget.org/api/v2/) . , . , nuget.org Glass Builder Server (http://build.glass.lu/guestAuth/app/nuget/v1/FeedService.svc), Glass Builder .

+3

Visual Studio Ctrl+Q, package sources . Visual Studio. CLI, NuGet.config , . , nuget .

+2

Source: https://habr.com/ru/post/1677018/


All Articles