且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在构建服务器上使用MSBuild进行构建时,VCTargetsPath是错误的

更新时间:2022-06-24 03:07:37

对于我来说,我的构建定义被配置为构建我的.sln文件而不是我的.proj文件.我记得配置它来构建MSBuild项目,但是它似乎已经恢复为解决方案了.

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. 确保构建.proj文件(工具版本确实设置为12.0).
  2. 明确设置
  1. Make sure to build the .proj file (where the tools version is indeed set to 12.0).
  2. Explicitly set the VCTargetsPath.