I almost finished an application and I want to thave two different releases. The only difference would be that one of releases is full featured application while the other one shouldn’t have some functions (eg. Create new project…).
For example the LESS featured program should not have the create project option in its menu (While the codes are the same).
I want to know if you have expirience with this case, should I make 2 different soloutions, or is there buildeoptions in Visual Studio that can take care of this cases? or maybe it is possible to use some special Attributes…how does one do such thing!
You can do that using the preprocessor directive
#if: http://msdn.microsoft.com/en-us/library/4y6tbswk(v=vs.71).aspxBasically:
Define a build configuration called
trialIn this build configuration, define a conditional compilation symbol called
TRIALUpdate your code to activate/deactivate features depending on whether the constant is defined or not