Environment variables get lost between MSBuild projects
- by DotNetter
Hi,
I have a .NET solution containing following projects:
web application (WAP)
web deployment (WDP, .wdproj)
wix setup (WIX, .wixproj)
In the WDP I've used a custom MSBuild task (SetEnvVar) to set some env. variables for further use in the build process. After setting them I can use them without prob.
in the WDP but in the WIX they are empty/undefined. The strange thing is that when I reference those env. vars in the WIX files (by using properties in .wxs or preproc vars in .wxi) I get the values as expected.
Do you have any idea why the env. vars get lost/are undefined in .wixproj?
By the way the (solution) build process is triggered from inside VS 2010.