简体   繁体   English

TFS Nuget软件包还原的要求

[英]Requirements for TFS Nuget Package Restore

I have set the option on my VS2013 solution "Enable Nuget Package Restore" and its not restoring nuget packages on a build server. 我已经在VS2013解决方案“启用Nuget软件包还原”上设置了该选项,并且未在构建服务器上还原nuget软件包。 Plenty of missing references errors to System.Web.Mvc and so on... 大量缺少对System.Web.Mvc的引用错误,等等。

Everything is fine on hosted TFS - but I'm running into issues with a secondary CI server using TeamCity. 托管TFS上的一切都很好-但是使用TeamCity的辅助CI服务器遇到了问题。 I don't have visual studio installed on the build server by choice. 我没有选择将Visual Studio安装在构建服务器上。

I'd like to know how do I enable package restore on the build server. 我想知道如何在构建服务器上启用软件包还原。

I don't want the packages in source control and I'd like to avoid hosting my own nuget feed for the System.Web.Mvc etc.. 我不想在源代码管理中使用这些程序包,并且我想避免为System.Web.Mvc等托管自己的nuget feed。

Cheers! 干杯!

不久前,我遇到了类似的问题,可以通过将Nuget.Targets文件中的RestorePackages条件值更新为True来解决此问题。

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

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