且构网

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

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

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

就我而言,我的构建定义被配置为构建我的 .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. 显式设置VCTargetsPath.
  1. Make sure to build the .proj file (where the tools version is indeed set to 12.0).
  2. Explicitly set the VCTargetsPath.