C# Preprocessor
http://msdn.microsoft.com/en-us/library/4y6tbswk(v=vs.100).aspx
Is there any way we can control MVC Views, Controllers, Models with conditional compilation?
This is for different versions of software releases.
Ex: release 1.1
release 1.2 etc…
I mean some features will not be available in 1 version based on conditional compilation.
This is for not maintaining different branches and merging them together at end.
FYI… I do not find option conditional compilation option in vs 2010, i used to do this with visual basic 6.0.
Well, you can:
Models/Controllers:
Views (Razor):
But it doesn’t sound like a great way to support versioning… (JMO)