繁体   English   中英

VSTS构建中的Nuget包还原错误

[英]Nuget package restore error in VSTS build

我为csproj之一创建了一个构建定义,如下所示。

在此处输入图片说明

我在使用此定义的构建过程中遇到nuget restore相关错误,有人可以帮助我解决此问题吗?

在此处输入图片说明

[更新]

根据评论中提供的建议,我已经更新为“ ** \\ *。sln”,那么它已经起作用了,但是出现如下错误

在此处输入图片说明

对于新问题,在构建定义中添加一个powershell脚本任务以导入认证。

$pfxpath = 'pathtoees.pfx'
$password = 'password'

Add-Type -AssemblyName System.Security
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$cert.Import($pfxpath, $password, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]"PersistKeySet")
$store = new-object system.security.cryptography.X509Certificates.X509Store -argumentlist "MY", CurrentUser
$store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]"ReadWrite")
$store.Add($cert)
$store.Close()

有关详细信息,请参阅此问题: Visual Studio团队服务deploymen / buildt证书错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM