Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare Configurations within Visual Studio?

Tags:

Actually i come around a problem i get more often into as i like to:

Consider the following: You just made a new solution/project and start creating/adding all the stuff you need. While you're doing so, you're always on the way within the debug configuration. You make changes to your configuration (in C++ projects especially compiler, linker settings) and at the end of the day you just want to swap to release mode to make a final build and what happens?? You got plenty of error messages about missing defines, linked libraries, preprocessor definitions, precompiled headers, etc.)

And now? You open the Project Properties, select each item in the tree view and switch for and back with the combo box of the Configuration at the top left.

Due to the fact, that both configurations are saved within one file you can't also use a simple Diff-Tool or you have to copy and paste both parts out of the project file into two different files, compare them and merge everything back into the project file.

Isn't there a better solution to compare different configurations within one project??

like image 662
Oliver Avatar asked Sep 23 '09 12:09

Oliver


People also ask

How do I compare in Visual Studio?

locate the required file in the Solution Explorer window, right-click it and choose Compare Selected File in the context menu; open the required file in Visual Studio, right-click the required document name in the document tab well and in the document's context menu select Compare Current File.

How do I open configuration properties in Visual Studio?

You can use the Configuration Manager dialog box to select or modify existing build configurations, or to create new ones. To open the Configuration Manager dialog box, in Solution Explorer, right-click on the solution node to open the shortcut menu for the solution, and then choose Configuration Manager.

How do I access the configuration Manager in Visual Studio?

The project configuration determines what build settings and compiler options are used when you build the project. To create, select, modify, or delete a configuration, you can use the Configuration Manager. To open it, on the menu bar, choose Build > Configuration Manager, or just type Configuration in the search box.

How do you compare codes in VS?

Using VSCode now, just open the two files and select both and context menu->compare selected.


1 Answers

I'm not sure when they introduced it, but in VS2015 at-least, you can select "Multiple Configurations..." in the configuration drop-down list on the Property Pages screen. You can then select "All Options" from the various sections, and see which parameters differ (those that differ say ). Doesn't show you the actual values - you still have to switch back and forth for that - but at least you can spot the differences quickly.

like image 92
guysherman Avatar answered Sep 20 '22 22:09

guysherman