How to build a VS2010 MakeFile project (vcxproj) with TFS Build (No VS 2010)

前端 未结 4 615
刺人心
刺人心 2020-12-10 03:17

I have a project that was building fine in VS 2008, and then we installed and started using TFS Build, and then we upgraded to TFS 2010. Everything was still fine and build

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 03:46

    An even more simple approach with adding an environment variable for VCTargetsPath:

    1. Locate the CPP Msbuild Folder mentioned by BlueMonkMN
      • e.g. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120
    2. Open Windows environment variables
      • Control Panel > System > Advanced Settings > Advanced > Environment Variables
    3. Add a new user variable with:
      • Name: VCTargetsPath
      • Value: [your path to MsBuild targets from step 1]
    4. Restart Visual Studio.
    5. Done. Your project should build now.

提交回复
热议问题