更新“Microsoft.NETCore.UniversalWindowsPlatform”后,VSTS NuGet包还原失败。到V5.2.2 [英] VSTS NuGet Package Restore fails after updating "Microsoft.NETCore.UniversalWindowsPlatform" to V5.2.2

查看:65
本文介绍了更新“Microsoft.NETCore.UniversalWindowsPlatform”后,VSTS NuGet包还原失败。到V5.2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们使用Visual Studio Team Services(VSTS)来托管/构建我们创建的Windows Universal App。

我们在将一个功能分支拉入开发分支时添加了一个Build Defintion(使用托管代理)来使用gated checkin。



这个工作正常,直到我们升级了NuGet Package Microsoft从版本5.1.0到版本5.2.2的.NETCore.UniversalWindowsPlatform。



由于使用以下日志条目在Nuget Package Restore中升级每个构建失败:



## [错误]错误:C:\ LR \ MMS \ Services \ Mms \TaskAgentProvisioner \Tools\agents\2.105.2 \ externals\\\
uget\\\
uget.exe失败并返回代码:1

## [错误]软件包无法安装

## [错误]返回代码:1



Microsoft.NETCore.UniversalWindowsPlatform版本5.2.2的更新包信息。如果使用nuget 3.x,它至少需要NuGet 3.4。



这可能是VSTS使用较低版本NuGet.exe的原因吗? />
不幸的是我没有找到任何版本信息用于使用过的NuGet版本或任何其他有用的信息来自NuGet Log的信息即使在将详细程度设置为详细信息之后也出现了问题。



当将Microsoft.NETCore.UniversalWindowsPlatform包降级回5.1.0时,构建过程中的还原再次起作用。



还有其他解决方案/解决这个问题的方法是降级包裹吗?
$


谢谢和亲切的问候



解决方案

您好,


感谢您在此处发帖。


以下是少数几个链接提供有关Nuget包恢复的信息,请尝试解决方法并告诉我们反馈。


https://blogs.msdn.microsoft.com/dotnet/2013/08/22/improved-package-restore/


https://blogs.msdn.microsoft.com/dotnet/2013/08/27/nuget-package-restore-with-team-foundation-build/


< a href ="http://stackoverflow.com/questions/38674185/vsts-doesnt-restore-packages-from-vsts-feed"> http://stackoverflow.com/questions/38674185/vsts-doesnt-restore-packages -from-vsts-feed


http ://stackoverflow.com/questions/9011889/nuget-package-restore-not-working


https://docs.nuget.org/consume/package-restore/migrating-to-automatic-package-restore


希望这会有所帮助!


问候,


D isclaimer:


此回复包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,并且Microsoft提醒您在从互联网上检索任何软件之前确保您完全了解风险。 



Hi,

we are using Visual Studio Team Services (VSTS) for hosting/building a Windows Universal App we created.
We added a Build Defintion (using Hosted Agent) to use gated checkin when pulling a feature branch into the development branch.

This worked fine until we upgraded the NuGet Package Microsoft.NETCore.UniversalWindowsPlatform from Version 5.1.0 to Version 5.2.2.

Since the Upgrade every Build fails at Nuget Package Restore with the following Log entry:

##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\2.105.2\externals\nuget\nuget.exe failed with return code: 1
##[error]Packages failed to install
##[error]Return code: 1

The Update Package Info for Microsoft.NETCore.UniversalWindowsPlatform Version 5.2.2. says it requires at least NuGet 3.4 if nuget 3.x is used.

Could this be a reason that VSTS is using a lower Version of NuGet.exe?
Unfortunately I haven't found any Version Information for the used NuGet version or any other usefull Information from the NuGet Log what went wrong even after setting the Verbosity to Detailed.

When Downgrading the Microsoft.NETCore.UniversalWindowsPlatform Package back to 5.1.0 the Restore during the Build Process works again.

Is there any other solution / workaround for this Problem than downgrading the Package?

Thanks and kind Regards

Kai

解决方案

Hi,

Thanks for posting here.

Here are the few links which gives the information regarding the Nuget package restore and please try the workarounds and let us know the feedback.

https://blogs.msdn.microsoft.com/dotnet/2013/08/22/improved-package-restore/

https://blogs.msdn.microsoft.com/dotnet/2013/08/27/nuget-package-restore-with-team-foundation-build/

http://stackoverflow.com/questions/38674185/vsts-doesnt-restore-packages-from-vsts-feed

http://stackoverflow.com/questions/9011889/nuget-package-restore-not-working

https://docs.nuget.org/consume/package-restore/migrating-to-automatic-package-restore

Hope this helps!

Regards,

Disclaimer:

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 


这篇关于更新“Microsoft.NETCore.UniversalWindowsPlatform”后,VSTS NuGet包还原失败。到V5.2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆