Sign in to follow this  

[.net] Define from the command line

This topic is 4543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

This topic is 4543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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