View Full Version : post build events
fkish
11-30-2007, 01:19 PM
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
kinook
11-30-2007, 01:44 PM
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.
fkish
11-30-2007, 01:56 PM
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
kinook
11-30-2007, 02:03 PM
Oh, I thought you were referring to VBP script events (http://www.visualbuild.com/Manual/scriptevents.htm).
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.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.