[.net] Define from the command line

Started by
1 comment, last by CipherCraft 18 years, 9 months ago
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
Advertisement
Well, you do not start devenv but csc.exe or vbc.exe.

Read this

Cheers
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

This topic is closed to new replies.

Advertisement