• Advertisement
Sign in to follow this  

[.net] Define from the command line

This topic is 4612 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
Advertisement
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
Sign in to follow this  

  • Advertisement