MSBuild in TeamCity of Visual Studio 2012 solution

前端 未结 6 714

I have a VS 2012 web project /sln that I am trying to build in TeamCity. it uses .NET 4.5 which is installed on TeamCity.

The TeamCity server has VS 2010 in

6条回答
  •  半阙折子戏
    2020-12-02 06:18

    Turns out it's really simple. To make MSBuild run VS2010 as the builder on a solution made by VS2012 in TeamCity, simply set the environment variable for the build configuration like this:

    enter image description here

    Name: env.VisualStudioVersion 
    Value: 10.0
    

    Note TeamCity does not need VS2012 installed.

提交回复
热议问题