Answer the question
In order to leave comments, you need to log in
Why doesn't TFS build substitute the value of the $(VSInstallDir) macro?
There is a rather interesting problem, which by no means can be solved. We have a build-machine where builds are assembled. I recently made changes to run the editbin.exe utility with the LARGEADDRESSAWARE parameter at the end of each build, which is located in the C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin folder (it is clear that the path to the folder may change). In the build project, I added a new target:
<Exec command=""$(VSInstallDir)\VC\bin\editbin.exe" /LARGEADDRESSAWARE "Manager.exe""/>
<VSINSTALLDIR Condition="'$(VSINSTALLDIR)'=='' and '$(NetSamplePath)'!=''">$(NetSamplePath)\..\..<VSINSTALLDIR>
Answer the question
In order to leave comments, you need to log in
In the properties of the buildplan, you can specify additional arguments to be passed to MSBuild when starting the build.
With the help of arguments, you can set the values of MSBuild-properties in the following way:
I think it will be possible to set VSInstallDir as well. Perhaps the value of this property is pulled from environment variables, but they are not set on the buildserver.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question