Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (http://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   post build events (http://www.kinook.com/Forum/showthread.php?t=3280)

fkish 11-30-2007 01:19 PM

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

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.

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.


All times are GMT -5. The time now is 03:23 PM.


Copyright 1999-2019 Kinook Software, Inc.