无法访问NuGet源
我试图添加一个来自私人来源的NuGet包;(提供者和包被故意忽略) 我已将源代码添加到项目中的本地Nuget.Config文件中无法访问NuGet源,nuget,Nuget,我试图添加一个来自私人来源的NuGet包;(提供者和包被故意忽略) 我已将源代码添加到项目中的本地Nuget.Config文件中 <configuration> <packageSources> <add key="[name]" value="https://[provider].pkgs.visualstudio.com/_packaging/[package]/nuget/v3/index.json" /> </pa
<configuration>
<packageSources>
<add key="[name]" value="https://[provider].pkgs.visualstudio.com/_packaging/[package]/nuget/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<[name]>
<add key="Username" value="[username]" />
<add key="Password" value="[password]" />
</[name]>
</packageSourceCredentials>
</configuration>
然而,当我尝试将特定的包添加到我的项目中时,我得到了以下错误
error: Unable to load the service index for source https://[provider].pkgs.visualstudio.com/_packaging/[package]/nuget/v3/index.json.
error: Response status code does not indicate success: 401 (Unauthorized).
自然的解释是我输入了无效的凭证。但是,当我在浏览器中访问源代码时,我可以使用相同的凭据登录并检查index.json文件
我想知道在添加私有NuGet源的过程中是否遗漏了什么
(NuGet版本:4.9.3.5777)我刚刚发现我遗漏了什么。我需要安装Azure工件凭据提供程序,并在GitHub页面上遵循 我刚刚发现我错过了什么。我需要安装Azure工件凭据提供程序,并在GitHub页面上遵循
error: Unable to load the service index for source https://[provider].pkgs.visualstudio.com/_packaging/[package]/nuget/v3/index.json.
error: Response status code does not indicate success: 401 (Unauthorized).