Ste*_*ene 5 nuget asp.net-core visual-studio-2017 angular
尝试关注此博客文章,其中我安装了正确的 SDK 和节点。
运行命令dotnet new --install Microsoft.AspNetCore.SpaTemplates::*给了我错误:
正在恢复 C:\Users\xxxx.templateengine\dotnetcli\v1.0.4\scratch\restore.csproj 的包...正在为源“ https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc ”重试“FindPackagesByIdAsyncCore” /FindPackagesById()?id='Microsoft.NETCore.App ''。响应状态代码不表示成功:401(未授权)。
正在重试源“ https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id= 'Microsoft.AspNetCore.SpaTemplates”的“ FindPackagesByIdAsyncCore ”。响应状态代码不表示成功:401(未授权)。
正在重试源“ https://tcypwv01/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id= ”的“FindPackagesByIdAsyncCore”'Microsoft.AspNetCore.SpaTemplates''。响应状态代码不表示成功:401(未授权)。
正在重试源“ https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id= 'Microsoft.NETCore.App”的“ FindPackagesByIdAsyncCore ”。响应状态代码不表示成功:401(未授权)。C:\Program Files\dotnet\sdk\1.0.4\NuGet.targets(97,5): 错误:无法从远程源“ https://ournugetserver/httpAuth/app ”检索有关“Microsoft.NETCore.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):
响应状态代码不表示成功:401(未授权)。[C:\Users\xxxxx.templateengine\dotnetcli\v1.0.4\scratch\restore.csproj]
似乎与我们的内部 nuget 服务器有关。我正在使用 VS 2017。正在寻找一种方法来强制它忽略我们的 nuget 服务器或强制它使用正确的服务器?
小智 4
此问题与 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 Server 中查找包。
| 归档时间: |
|
| 查看次数: |
1171 次 |
| 最近记录: |