Hi,
I am testing migrating our build from TeamCity to Bamboo. Our build steps include a script task at the start of the job to configure environment variables by calling 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat', however the changes to environment variables when this is called do not appear to persist to subsequent tasks (ie. MSBuild ones), so our build fails.
Am I setting this up wrong? My MSBuild task builds a target that relies on the environment variables set from vcvarsall.bat.
Thanks,
Mike.
For info, I solved this myself by creating an 'MSBuild.bat' file which sets up environment variables every time and calls MSBuild.exe. This then gets used by Bamboo to launch MSBuild rather than the executable.
Not a particularly nice solution imho.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.