加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angular – 不会安装Microsoft.AspNetCore.SpaTemplates

发布时间:2020-12-17 17:33:09 所属栏目:安全 来源:网络整理
导读:尝试按照 this blog post安装正确的SDK和节点. 运行命令dotnet new –install Microsoft.AspNetCore.SpaTemplates :: *给我错误: Restoring packages for C:Usersxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj… Retrying ‘FindPackages
尝试按照 this blog post安装正确的SDK和节点.

运行命令dotnet new –install Microsoft.AspNetCore.SpaTemplates :: *给我错误:

Restoring packages for
C:Usersxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj…
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.NETCore.App”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.AspNetCore.SpaTemplates”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07003’Microsoft.AspNetCore.SpaTemplates”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.NETCore.App”.
Response status code does not indicate success: 401 (Unauthorized).
C:Program Filesdotnetsdk1.0.4NuGet.targets(97,5): error : Failed
to retrieve information about ‘Microsoft.NETCore.App’ from remote
source
‘07001’Microsoft.NETCore.App”.
[C:Usersxxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj]
C:Program Filesdotnetsdk1.0.4NuGet.targets(97,5): error :
Response status code does not indicate success: 401 (Unauthorized).
[C:Usersxxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj]

似乎与我们的内部nuget服务器有关.我正在使用VS 2017.想办法可能强迫它忽略我们的nuget服务器或强制它使用正确的服务器?

解决方法

此问题与Nuget包源有关.只选择
nuget.org( https://www.nuget.org/api/v2/)source帮我解决了这个问题.请确保您没有选择任何其他来源.它发生在我身上,因为在nuget.org上,Glass Builder Server( http://build.glass.lu/guestAuth/app/nuget/v1/FeedService.svc)也被选中,它正在寻找Glass Builder Server中的包.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读