PDA

View Full Version : changing conditional compilation arguments


berserkk
10-09-2005, 06:36 PM
Hi is there a way to alter the conditional compilation arguments in a vbp project.
in particular we want to change 1 argument ( isdebug=1 )
to ( isDebug=0 ) and leave other arguments unaltered. Is this a possibility?
Thanks for your assisntance.

kevina
10-10-2005, 02:11 PM
Visual Build Professional currently doesn't provide an entry field specifically for entering conditional compilation values, however you can easily specify them in the "additional values ..." field on the Options tab using the /d flag.

In your case you would simply enter /d isDebug=0 in the additional values field on the Options tab.

Here is the MS website documenting this feature and related command-line vb compiler flag: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconconditionalcompilation.asp

Note: this won't actually alter the Visual Basic project, but will simply override the value specified in the project file (which remains unchanged). I assume this is what you are requesting.

berserkk
10-10-2005, 06:26 PM
Thanks that was what i was after =)