I work with a team on a large project developed for multiple platforms. We used to have a separate sln file for each platform so i could chose which platform i want to work on by opening the appropriate sln file. Recently we merged all sln files into a single one. I would like to create new shortcuts for myself - one for each platform - which would launch VS 2010 opening the solution and setting the selected solution configuration to "Debug|PlatformName" for each PlatformName we use.

I have been reading on the net about possible command line arguments to pass devenv.exe that would select it and it seems there's two approaches:

  1. switches - there seems to be none that sets the current configuration in the environment without building or deploying or cleaning
  2. commands (devenv /command "..."). A list of commands with arguments is to be found here but once again i see nothing suitable for the purpose: http://msdn.microsoft.com/en-us/library/c338aexd(v=vs.80).aspx

Thanks in advance for the answers.

1

There are 1 answers

0
Max On

Maybe you can create a VS launcher by yourself with a scripting/automation tool like AutoHotKey (http://www.autohotkey.com/) or something like that.
With these kind of tool you should be able to run VS, wait it to load, and then change the combo to select your solution configuration.