更新 C# 6/.NET 4.6 应用程序的构建控制器 [英] Update Build Controller for C# 6 /.NET 4.6 Applications
问题描述
我们仍在使用 TFS 2010,它似乎无法使用新的 C# 6 语法构建任何东西.我试图按照这个 post 更新流程模板中的 ToolPath 属性,但没有帮助.
We're still using TFS 2010 and it can't seem to build anything with new C# 6 syntax. I tried to follow this post to update the ToolPath property in the process template but it didn't help.
我还能做什么?在构建服务器上安装 VS 2015?
What else can I do? Install VS 2015 on the build server?
更新
我意识到在流程模板中有不止一个为项目运行 MSBuild"的地方,我必须更新 ToolPath 属性.其实,我更新的那个地方不对.在我在正确的位置更新属性后,问题就消失了.
I realized that in the process template there is more than one "Run MSBuild for Project" place that I had to update the ToolPath property. Actually, the one I updated wasn't the right place. After I update the property at the right place the problem went away.
另外,我认为不需要 VS2015.只需要安装Microsoft Build Tools 2015>
Also, I don't think VS2015 is needed. Just need to install Microsoft Build Tools 2015
推荐答案
如果错误信息是关于xx 找不到路径".您应该在构建代理上安装 VS 2015.确保您可以在本地开发人员机器上构建您的应用程序.您的构建机器上的构建环境应该与您本地的开发者机器相同.
If the error message is about"xx can't find the path." You should install VS 2015 on your build agent. Make sure you can build your app on your local developer machine . The build environment on your build machine should be the same with your local developer machine.
这篇关于更新 C# 6/.NET 4.6 应用程序的构建控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!