I have a program. There are two versions of it, one has two lines commented out. I would probably do the same improvements to both codes, so in the end the difference will be the same two lines.
Now, I need an easy way to manage both. Currently, I have both in one project and I keep commenting and uncommenting the lines for each build. So, I have two possible solutions:
Is there an ideal way? (Visual Studio 2013)
You can try conditional compilation. With conditional compilation you can create a new "configuration" in your project such as "release2" and then specify a symbol for that configuration so that when "release2" is selected then those two lines will be commented or uncommented.
Take a look at this example here: http://pinter.org/?p=1060