VCTargetsPath is wrong when building with MSBuild on build server

后端 未结 2 895
無奈伤痛
無奈伤痛 2020-12-16 03:20

In my C++ project, Test.wcxproj, I have the following configurations defined:




        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 03:32

    In my case, my build definition was configured to build my .sln file instead of my .proj file. I remember configuring it to build the MSBuild project, but somehow it seems to have reverted to the Solution.

    Anyway, I found two solutions to the problem:

    1. Make sure to build the .proj file (where the tools version is indeed set to 12.0).
    2. Explicitly set the VCTargetsPath.

提交回复
热议问题