Kosmo零
Kosmo零

Reputation: 4151

Has C# any build configuration manager similar to VC++?

I want to configure my project for two different builds (demo and full)

In VC++ I have no problems with that, I can create new configuration like "Release Demo", declare preprocessor directive like DEMO and use next code:

#ifdef DEMO
   //do something
#endif

Then, if I choose this demo configuration at build, I can have even separate folders for "Release Demo" where binaries goes too.

C# has this thing #if to mark preprocessor variable dependent parts of code, but which way I can make it build to different folders? Easy declare preprocessor variables for one of configurations only? Etc?

I use VS# Express 2010

my build tab

Upvotes: 0

Views: 274

Answers (1)

george.zakaryan
george.zakaryan

Reputation: 980

Right click on the name of your project in Solution Explorer, then click Properties. Choose the Build tab, where you can see project configurations like Debug, Release. You can set up which one is active, what is the destination folder for a configuration, etc.

Edit: Look at the screenshot

enter image description here

Edit 2: There's also a way for creating custom build configurations. For that, right click on the name of your solution in Solution Explorer, go to Properties -> Configuration, click on Configuration Manager button (on upper right corner).

Upvotes: 1

Related Questions