Here’s a howto for setting build environment variables within Visual Studio itself. Given that I’ve seen plenty of projects that used system wide environment variables for project level settings, I suspect this will be of use to other developers as well.
- From the menu: View > Other Windows > Property manager.
- Right click on Property Manager, add Property Sheet.
- Double click on the just created Property Sheet.
- Click on User Macros.
- Click Add Macro.
- Add the build variable’s name and value. Check “Set this macro as an environment variable in the build environment”.
References
Thanks a bunch. I really didn’t want to have to make an environment variable on every machine I wanted to develop on. You learn new stuff every day.