Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-30-2007, 01:19 PM
fkish fkish is online now
Registered User
 
Join Date: 06-26-2003
Posts: 11
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
Reply With Quote
  #2  
Old 11-30-2007, 01:44 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 11-30-2007, 01:56 PM
fkish fkish is online now
Registered User
 
Join Date: 06-26-2003
Posts: 11
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
Reply With Quote
  #4  
Old 11-30-2007, 02:03 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



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


Copyright © 1999-2023 Kinook Software, Inc.