I'm moving an existing build script which works fine using the VS command prompt into TFS. Everything is working fine up to the point where MSBuild.ExtensionPack.VisualStudio.VSDevEnv is used. This is a 2008 project.
The following error occurs:
The specified task executable "devenv.exe" could not be run. The system cannot find the file specified
The VSINSTALLDIR variable is properly created and pointing to the right place on the build machine registry. The InstallDir key to the devenv.exe folder is present and correct. (Hard coding the path
also didn't work)
<VSINSTALLDIR Condition="'$(VSINSTALLDIR)' == ''">
The InstallDir key points to D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\
It just can't seem to locate the executable for some reason.
Thanks in advance.