How to start VS 2010 so that it opens a sln file and selects a specific solution configuration in the environment

I am working with a team on a large project designed for several platforms. We had a separate sln file for each platform, so I could choose which platform I want to work on by opening the corresponding sln file. Recently, we have combined all the sln files into one. I would like to create new shortcuts for myself - one for each platform - that would launch VS 2010 by opening the solution and setting the selected solution configuration to "Debug | PlatformName" for each PlatformName we use.

I read on the net about possible command line arguments to pass the devenv.exe file that will select it, and there seem to be two approaches:

  • - It seems there is not one that sets the current configuration in the environment without creating or deploying or cleaning up.
  • commands (devenv / command "..."). The list of commands with arguments can be found here, but again I do not see anything suitable for this purpose: http://msdn.microsoft.com/en-us/library/c338aexd(v=vs.80).aspx

Thanks in advance for your answers.

+4
source share
1 answer

Perhaps you can create your own VS launcher yourself using a scripting / automation tool like AutoHotKey (http://www.autohotkey.com/) or something like that.
With this tool, you can start VS, wait for it to load, and then change the combo to select the configuration of your solution.

0
source

Source: https://habr.com/ru/post/1391854/


All Articles