#1
|
|||
|
|||
post build events
Is there any way to skip post build events when compiling projects?
I ask b/c some developers need to add these at times b/c of their local configuration but most of the time the build machine's config is diff so these are flagged as failures. Any ideas? Thanks Frank |
#2
|
|||
|
|||
You could conditionally execute the code, something like:
If Not vbld_AllMacros()("EVENTS_ON") Is Nothing Then ' ... event script code here End If in the script event code, and then create an EVENTS_ON macro (global macro, pass in on the command-line as temporary macro, etc.) on the computer's where events should execute. |
#3
|
|||
|
|||
Maybe I don't understand or perhaps my original post as not clear...
The Post Build Events I was referring to was the ones in Visual Studio csproj , vbproj, or cpp files. Looking back at my post I did not mention that detail...sorry if my original post was not complete. Thanks, Frank |
#4
|
|||
|
|||
Oh, I thought you were referring to VBP script events.
For VC projects, you can enable Visual Studio build events on a configuration-by-configuration basis, so you could create one config that has the events and another that doesn't, and then build the appropriate configuration as needed. CSharp and VB.NET build event settings are global to the project and can't be selectively enabled/disabled. You might want to conditionally perform those steps in your .bld file instead. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|