Is it possible to configure TeamCity to use the MSBuild that ships with Visual Studio 2015?

前端 未结 3 1730
无人及你
无人及你 2021-02-19 13:39

I\'m attempting to build an ASP.NET vNext project in TeamCity. When it tries to build, I get the following error:

C:\\...\\MyApp.kproj(7, 3): error MSB4019: The i

3条回答
  •  灰色年华
    2021-02-19 14:04

    An alternative workaround is to simply replace the 12.0 tools with 14.0 tools. I just downloaded the lastest Visual Studio 2015 (Update 2) build tools. Installed it on my agents and

    1. Renamed C:\Program Files (x86)\MSBuild\12.0 => C:\Program Files (x86)\MSBuild\12.0-old

    2. Copied C:\Program Files (x86)\MSBuild\14.0 => C:\Program Files (x86)\MSBuild\12.0

    Works! You need to have the 14.0-tools in both 12 and 14 folder for things to work.

提交回复
热议问题