Using .Net SDK Tools in pre- and postbuild events in VS

6. October 2011

Sometimes you need to call gacutil or other SDK tools from build-events and in order to do this, they need to be added to the path.

Not exactly rocket science, but I always forget the macro and for future reference the following line will do the trick:

call "$(DevEnvDir)..\..\VC\vcvarsall.bat" x86


Christian Staerk  

Visual Studio 2010, .Net

Comments are closed