Sign in to follow this  
CipherCraft

[.net] Define from the command line

Recommended Posts

CipherCraft    163
Hi, I can't seem to find a way to define a preprocessor variable from the command line when invocing devenv. In the old days [wink] I could add /D or /U to control my preprocessor defines, but with .NET that option is gone. How do I go about this? (Required for automated builds using Nant.) tia, CipherCraft

Share this post


Link to post
Share on other sites
CipherCraft    163
Hi,

Those are for C# and VB I'm afraid. I need to build a C++ solution but also need to 'customize' it by specifying different defines.

The only way (I know) of building a C++ solution from the command line is using devenv. Does anyone know of a different way? One where I can specify #define's?

tia,
CipherCraft

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this