Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法访问NuGet源_Nuget - Fatal编程技术网

无法访问NuGet源

无法访问NuGet源,nuget,Nuget,我试图添加一个来自私人来源的NuGet包;(提供者和包被故意忽略) 我已将源代码添加到项目中的本地Nuget.Config文件中 <configuration> <packageSources> <add key="[name]" value="https://[provider].pkgs.visualstudio.com/_packaging/[package]/nuget/v3/index.json" /> </pa

我试图添加一个来自私人来源的NuGet包;(提供者和包被故意忽略)

我已将源代码添加到项目中的本地Nuget.Config文件中

<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).