View Single Post
  #2  
Old 08-16-2005, 09:27 AM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
It sounds like you have scheduled a Visual Build Professional build to run daily and pass in a macro value to determine what gets built (currently both the release and debug configurations are built).

To conditionally build only the debug configuration, you could define a MACRO (that is passed in with the appropriate value) such as BUILD_DEBUG with a value of 1 or 0. Then define a conditional build rule on the step/group that builds the debug config. Something like "Build only if macro or expression" %BUILD_DEBUG% is true.

If you don't want to pass in a macro but have the build "compute" which day of the week it is, then you can use a script expression instead. You could define a conditional build rule like "Build only if macro or expression" [WeekDay(Date)] is equal to 3 or similar...

Actually in rereading your post, I guess you always want to build the debug config, but optionally build the release config. A slight modification of the suggestions will accomplish what you need...
Reply With Quote