MSbuild Error: The builds tools for v140 (Platform Toolset = 'v140') cannot be found

后端 未结 5 1975
死守一世寂寞
死守一世寂寞 2020-12-10 01:42

I have a solution which is consists of a large number of projects (C++ and C#). I upgraded the solution to VS2015, so the toolset version for most of them are now set to V14

5条回答
  •  抹茶落季
    2020-12-10 02:20

    The builds tools for v140 that's the platform toolset for VS2015.

    If you are using TFS2015, you must make sure the build environment on your build machine be the same as your local developer machine. You should install VS2015 on your build machine.

    If you are using TFS2013 or TFS2012, most probably MSBuild 12.0 is called.You need to set the build templates to point to MS Build version 14.0. For the details, check: TFS 2013 building .NET 4.6 / C# 6.0

提交回复
热议问题