I'm trying to create a new constant so I can use it in a similar way as the DEBUG constant:
#if(DEBUG)
public void LoadProcedure ()
#else
private void LoadProcedure ()
#endif
That works for Debug / Release configurations in Visual Studio 2008, but what I need is a TDD or TESTING constant. I created a new build configuration named "Testing". Now the question is how I define that.
Must be some command line parameter ::- ).
Thank you in advance ::- ).
In the Project Properties window, Build tab, there is a textbox that lets You enter 1 or more values:
Conditional Compilation Symbols: [TESTING;DEMO ]
As you will see it is bound to the Configuration selection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With