This question already has an answer here:
I'm working on a special project where I need to create a new application with a similar but restricted functionality of an original application (basically a type of free application with limited functionality). Now, the problem comes with the maintenance of the code.
I'm using Visual Studio 2013 for the development and have Microsoft TFS as the source code repository. I do not want to duplicate my code so I thought of using the same files of the original product and introduced a MACRO to restrict the functionalities that I do not want to deliver. This way, I will be just changing some of the project files and will not be creating any duplicate copies. But the management is reluctant for any change in the original product's code even if it's just a MACRO.
So, my question is do we have any other way through which I can maintain the source code without any duplicate copies and without even changing the original product's code.
Thanks in advance.