Update Build Controller for C# 6 /.NET 4.6 Applications

心已入冬 提交于 2019-12-24 13:33:18

问题


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.

What else can I do? Install VS 2015 on the build server?

UPDATE

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.

Also, I don't think VS2015 is needed. Just need to install Microsoft Build Tools 2015


回答1:


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.



来源:https://stackoverflow.com/questions/32851942/update-build-controller-for-c-sharp-6-net-4-6-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!