我的项目使用自定义提要,在使用之前我需要对其进行身份验证。
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore告诉我--interactive应该使用该标志。然而,这不会改变任何事情。我收到错误:
/usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): 错误:无法加载源https://myproject.pkgs.visualstudio.com/_packaging/MyFeed/nuget/的服务索引v3/ 索引 x.json。[/home/xyx/code/MyApp.csproj] /usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): 错误 : 响应状态代码未表示成功:401(未经授权)。[/home/xyx/code/MyApp.csproj]
我如何授权我的供稿?
要让 dotnet 要求您提供凭据,您需要安装https://github.com/microsoft/artifacts-credprovider。它解决了这个问题。
| 归档时间: |
|
| 查看次数: |
3011 次 |
| 最近记录: |