TFS运行在C#6.0的功能建设 [英] Running TFS Build with C# 6.0 features

查看:159
本文介绍了TFS运行在C#6.0的功能建设的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#6.0中的 nameof()运营商在我的项目刚刚开始。现在(入住,咄......在)我(或更好:生成代理)拒绝建立项目(这是编译本地就好了),因为它无法找到 nameof()的表情。

I just recently began using the nameof() operator of C# 6.0 in my projects. Now (upon check-in, duh...) I (or better: the build agent) refused to build the project (which was compiling locally just fine) because it could not find the nameof() expression.

我开始构建控制器以及TFS的服务器本身上安装VS 2015年,但无济于事。我怎样才能让我的TFS 2013更新5建立与C#6.0的功能项目?

I began installing VS 2015 on the build controller as well as the TFS server itself, but to no avail. How can I get my TFS 2013 Update 5 to build projects with C# 6.0 features?

我已经想到编辑BuildProcessTemplate,但我们使用默认模板所有通过我们的所有生成定义的方式,我甚至不知道这是正确的道路要走。

I already thought of editing the BuildProcessTemplate, but we're using the default template all the way through all our build definitions and I even didn't know if this was the right way to go.

推荐答案

您既可以安装微软构建工具2015的生成代理计算机上,并配置建立模板使用该版本的MSBuild的,否则安装Microsoft.Net.Compilers的NuGet包你想建立新的编译器项目。

You can either install the "Microsoft Build Tools 2015" on the build agent machine and configure the build template to use that version of msbuild, or else install the Microsoft.Net.Compilers NuGet package in the projects you want to build with the new compiler.

这篇关于TFS运行在C#6.0的功能建设的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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