How do you create C # build events related to configuration in VS2008

In vs2008, C # build events are configuration dependent.

Looking for ideas on how to make my build event fire only when creating the Release build.

Ideas?

+4
source share
3 answers

Unfortunately, C # projects do not support anything like what I found. I had to resort to writing makefiles in certain situations to get around this. You can also write a batch file or a simple program that takes a parameter, and then call it like this from the build event:

custom.exe $(ConfigurationName) 
+1
source

ok, along the lines of Brian, I do this:

 if "$(ConfigurationName)" == "Release" do_something 

and it seems to work

+6
source

VS2008 supports configuration events for each configuration. Make sure you set assembly events when “All configurations” is selected in the project properties dialog box.

0
source

All Articles