views:

45

answers:

1

I want to see all of the current environment variables during a build. I'd like to do this in the pre or post-build steps if possible because I don't want to edit the Targets file. This could print to the Output window or to a file. I've tried a number of different ways without success. I'm using Visual Studio 2008. Thanks!

+1  A: 

If you just keyin set in the Post Build event, it displays the environment variables in the output window.

Malcolm Post
That worked perfectly! I was trying too hard, and wrapping the set in %, etc.