Click here to Skip to main content
15,901,373 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy8-May-05 15:02
Rafferty Uy8-May-05 15:02 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus8-May-05 15:04
protectorChristian Graus8-May-05 15:04 
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy8-May-05 15:15
Rafferty Uy8-May-05 15:15 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus8-May-05 12:35
protectorChristian Graus8-May-05 12:35 
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy8-May-05 16:59
Rafferty Uy8-May-05 16:59 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus8-May-05 17:30
protectorChristian Graus8-May-05 17:30 
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy8-May-05 19:30
Rafferty Uy8-May-05 19:30 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus8-May-05 19:40
protectorChristian Graus8-May-05 19:40 
Rafferty Uy wrote:
Did you just look it up in the MSDN Library?

The overall approach ? No, it's just what I would do.

Rafferty Uy wrote:
I also don't know about how to customize build settings yet.

Fair enough. On the menu, go to Build/Configuration Manager. choose 'new' in the drop down. Call it 'Demo version' or something. Do that twice, copy one from release and one from debug, and name them accordingly. Now in both of these projects, right click on the project name in the solution explorer and choose properties. Click on 'configuration properties'. The first of the three options below it is selected, and the first item in the list of options is compiler settings. DEBUG is defined for the debug version, in both cases, add the name of the define you want to check in your code. Now these builds will have that define set. HOWEVER, I'd recommend creating a new project that imports most of the other one ( i.e. looks at the same files ) and excludes the files that contain the stuff you don't want to offer in your demo version. Then you only need to use the #ifdef stuff to check your define before adding those items to menus, etc. If you do it all in one project, then you'll need to #ifdef out entire files as well, which is just plain ugly IMO.

Either way, that's how you set up the defines in the build versions.

Christian Graus - Microsoft MVP - C++
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy8-May-05 20:22
Rafferty Uy8-May-05 20:22 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus9-May-05 12:16
protectorChristian Graus9-May-05 12:16 
GeneralRe: Two application versions in one solution (Possible?) Pin
Rafferty Uy10-May-05 20:16
Rafferty Uy10-May-05 20:16 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus11-May-05 12:51
protectorChristian Graus11-May-05 12:51 
GeneralFile Security Pin
Hyland Computer Systems3-May-05 7:56
Hyland Computer Systems3-May-05 7:56 
GeneralRe: File Security Pin
Christian Graus3-May-05 18:02
protectorChristian Graus3-May-05 18:02 
QuestionDoc/View in .NET? Pin
senzafine2-May-05 21:50
senzafine2-May-05 21:50 
AnswerRe: Doc/View in .NET? Pin
Christian Graus3-May-05 18:03
protectorChristian Graus3-May-05 18:03 
GeneralRe: Doc/View in .NET? Pin
senzafine6-May-05 18:10
senzafine6-May-05 18:10 
GeneralRe: Doc/View in .NET? Pin
Christian Graus8-May-05 12:49
protectorChristian Graus8-May-05 12:49 
GeneralRe: Doc/View in .NET? Pin
senzafine9-May-05 3:27
senzafine9-May-05 3:27 
GeneralRe: Doc/View in .NET? Pin
Christian Graus9-May-05 11:53
protectorChristian Graus9-May-05 11:53 
Generalsaving app size and desktop location Pin
shefali_sinha2-May-05 10:28
shefali_sinha2-May-05 10:28 
GeneralRe: saving app size and desktop location Pin
MoustafaS2-May-05 13:01
MoustafaS2-May-05 13:01 
GeneralDataAdapter.Update Within A Transaction Pin
Jim Matthews2-May-05 6:09
Jim Matthews2-May-05 6:09 
QuestionHow to change culture of the MonthCalendar control? Pin
iliyang2-May-05 4:59
iliyang2-May-05 4:59 
GeneralUpdate datagrid Pin
harwanegg2-May-05 2:10
harwanegg2-May-05 2:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.