views:

29

answers:

1

I'm trying to pass an additional conditional compilation symbol via devenv (vs2010) on the command line to the C# compiler.

I know it can be done for the C++ compiler through the CL environment variables. Is there something similar possible for C#?

Since this build pass needs to run Code Analysis, I'm stuck with using devenv to launch the build, as far as I know.

A: 

In the project settings under build there is a setting "symbols for conditional compilation", at least in vs2008, but I think vs2010 wilkl provide similar.

codymanix
Yup - and I'd like to control that via the command line of devenv.
FrederikB