Request for Whibey Team

I occasionally add code to my projects for testing purposes only. In most cases, I just bracket such code with preprocessor directives such as #if DEBUG .... #endif

However, in some cases, this code references another assembly, and this is where the problem begins. If the only purpose of the assembly is for this code, it's really annoying, since you have to constantly remove the reference to avoid having to deploy this depenency.

One simple feature I would love to see added to VS.NET 2004 is to add a property to Project Grid for References to allow you to apply a symbol - such as DEBUG, or perhaps a custom one like UNIT_TEST - to allow conditional compilation with or without referencing the assembly. This could be driven by the Conditional Compilation Constants defined for the project within Visual Studio.NET.

Later, I'll try to post some mocked-up screenshots of what I am talking about...

1 Comment

Comments have been disabled for this content.