简体   繁体   English

TFS 2013 Build Agent目标.NET版本

[英]TFS 2013 Build Agent target .NET version

I installed a TFS 2013 and configured the build service, but I am trying to build an old application that was written on .NET 2.0. 我安装了TFS 2013并配置了构建服务,但是我试图构建一个用.NET 2.0编写的旧应用程序。 Each time I run the build I receive this error: 每次运行构建时,都会收到此错误:

<link-to-file> (24): Reference required to assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the base class 'System.Web.UI.Control'. Add one to your project.

I checked and on the server there is installed .NET 2.0 version. 我检查并在服务器上安装了.NET 2.0版本。 My question is how to change the build definition to target another version of the framework, because my guess is that the version is incorrect, but I can't find where to do that. 我的问题是如何更改构建定义以针对该框架的另一个版本,因为我的猜测是该版本不正确,但是我找不到在哪里执行该操作。

您可以使用/ToolsVersion开关 ,进入构建过程的“高级”设置并将该开关添加为MSBuild参数。

/ToolsVersion:2.0

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

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