c# - Removing the code with preprocessor in .net -


i have .net c# application. in application have 2 set of code different client.

we thinking of removing part of code through preprocessor. diabling part config file parameter not option us.

we want simple setup like:

#define debug //.... #if debug   console.writeline("debug version"); #endif 

the issue is, our part of code distributed multiple files , multiple projects in solution.

so want define globally preprocessor “debug” @ 1 place. preferably in project property or something.

what best option us?

look "conditional compilation symbols" on "build" page of project property dialog. can set per-build configuration.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -