build-events

send variables to Visual Studio 2008 build event command line

I would like to send additional parameters to the batch file that I'm running in the "Pre-build event command line" of Visual Studio 2008. I can change directory ("cd") to the current "solution directory" by passing in "$(SolutionDir)\MyProject". Can I pass in the build version? I've set my AssemblyInfo.cs to auto increment (as describ...

Prebuild Event only on Build Solution/Project not on F5(Debug)

As the tittle says I need a prebuild command CONDITION that executes an exe on build solution/project and passes when i use F5. I found "$(ConfigurationName)" as a possible solution on some websites but it only works if you change each time the configuration type manually. Anybody knows the trick?? ...

Visual Studio 2008 Post Build event -- only run on Rebuild

Hi, In Visual Studio 2008 we run a post build event which calls NANT and in turn creates our config files. e.g. if $(SolutionDir) == . GOTO end nant -buildfile:$(SolutionDir)default.build create..web.config Is there a way to run this only on ReBuild? Thanks ...

How can I write a registry key from VS post build event?

One of the projects I work on need to read a registry key in order to determine some value. Usually the value will be written during installation. Because I want to run the project locally as well (without installation) I want to write that value after the build has finished. Is there a simple way I can do that? ...

C++ - Custom build events

Is there any way to force Clean action as a Post / Pre build event for single project in Visual Studio? Thank you. ...

VS2008 post-build events: include directory

I have a data directory in my VS2008 Project that is "Excluded from Project". How can I use the Post-Build Event (Properties - Build Events) to have that directory included in the project output after compilation? ...