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

.NET (Core and Framework)

 
GeneralRe: Two application versions in one solution (Possible?) Pin
Saksida Bojan5-May-05 23:39
Saksida Bojan5-May-05 23:39 
GeneralRe: Two application versions in one solution (Possible?) Pin
Christian Graus8-May-05 12:34
protectorChristian Graus8-May-05 12:34 
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 
If the #define happens in code, then it's a waste of time. If you can't create a define as a build property ( as you can in C++ ), then the mechanism you use to change builds remains a manual one.

It seems that C# works the same a C here, I didn't know ( I hated macros in C ). You can set the defined values in your build settings, so you can set up builds for more than one version, and wrap entire classes in #ifdef statements. Personally, ( and I did this on a project in C++ years ago ), I think this gets too messy, too quickly. Your code gets hard to read, and flow is hard to establish with little #ifdef blocks everywhere. The approach I suggest would force you to move most of the differences into entire classes that are excluded, and a #define could be used just for the code that controls what menu options are provided, as appropriate. The less #ifdef blocks you can have, the better.


Christian Graus - Microsoft MVP - C++
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 
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 

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.