Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.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
Azure devops 访问私有Nuget提要时获取错误_Azure Devops_Nuget Package_Private Nuget Feed - Fatal编程技术网

Azure devops 访问私有Nuget提要时获取错误

Azure devops 访问私有Nuget提要时获取错误,azure-devops,nuget-package,private-nuget-feed,Azure Devops,Nuget Package,Private Nuget Feed,尝试从Azure软件包工件访问私有NuGet提要时出错 安装软件包Microsoft.Sdk-版本1.0.0-CI-20191028-053209 The content at 'https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0' is not valid XML. For secur

尝试从Azure软件包工件访问私有NuGet提要时出错

安装软件包Microsoft.Sdk-版本1.0.0-CI-20191028-053209

The content at 'https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0' is not valid XML.
  For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.
  GET https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=ocpdirectory%40Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0
  NonAuthoritativeInformation https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=ocpdirectory%40Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0 429ms
Install-Package : Failed to retrieve information about 'Microsoft.Sdk' from remote source 'https://mpneng.visualstudio.com/Tools/_packa
ging?_a=feed&feed=Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0'.
  The content at 'https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0' is not valid XML.
  For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass 
the settings into XmlReader.Create method.
At line:1 char:1
+ Install-Package Microsoft.Sdk -version 1.0.0-CI-2019102 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

https://mp.visualstudio.com/Tools/_packaging?_a=feed&feed=Release/FindPackagesById()?id='Microsoft.Sdk'&semVerLevel=2.0.0'不是有效的XML。

根据错误日志,似乎您使用了错误的URL,我们应该使用“连接到提要”说明中提供的URL

示例URL链接

https://pkgs.dev.azure.com/{Org name}/{project name}/_packaging/{artifact name}/nuget/v3/index.json

是的,你是正确的问题与网址只,我更正了网址,它的工作罚款现在@维托,谢谢你的帮助,