简体   繁体   English

TFS Build Nuget软件包错误

[英]TFS Build Nuget Package Error

We are setting up a new TFS build server and have created "New Build Definition" through visual studio 2013. The project is built based on ASP.NET MVC framework and it compiles without any error, but when we run the build definition it fails and getting the below mentioned error. 我们正在设置新的TFS构建服务器,并已通过Visual Studio 2013创建了“新构建定义”。该项目基于ASP.NET MVC框架构建,并且编译时没有任何错误,但是当我们运行构建定义时,它会失败并得到下面提到的错误。 ( just sample error message, it fails for all the nuget packages) (只是示例错误消息,它对于所有的nuget包都失败)

....Unable to find version '6.1.3' of package 'EntityFramework'.
.....Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
....Unable to find version '3.2.3' of package 'Microsoft.AspNet.Razor'.
.....Unable to find version '5.2.3' of package 'Microsoft.AspNet.Mvc'.

We haven't installed visual studio or nuget manager in the build server. 我们尚未在构建服务器中安装Visual Studio或nuget Manager。 Do we have to install visual studio in the build server? 我们是否必须在构建服务器中安装Visual Studio? or anything needs to be done on the web project? 还是需要在Web项目上做任何事情? The Build server has internet access. 生成服务器可以访问Internet。

Any help appreciated. 任何帮助表示赞赏。

A build agent should be more or less identical to a developer's workstation. 构建代理应该与开发人员的工作站大致相同。 That includes having an appropriate version of Visual Studio installed. 这包括安装适当版本的Visual Studio。

You can get builds running without installing Visual Studio, but it involves jumping through a lot of hoops. 可以在不安装Visual Studio的情况下运行构建,但这会涉及很多麻烦。 There is no additional licensing cost for installing VS on a build server, if I recall correctly. 如果我没记错的话,在构建服务器上安装VS没有额外的许可费用。 So save yourself a lot of pain and install Visual Studio. 因此,省去很多麻烦,然后安装Visual Studio。

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

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