Two Time-saving VS Command Line Parameters

E02D0021 I realize that many of my readers load one project at the beginning of the day and continue to work on only that project.  You guys won’t benefit as much from this tip as those of us who switch between multiple projects in a day.  But you will benefit.

My development life has me currently working for two separate clients that require the use of Visual Studio.  I’m in the mist of integrating changes from two different versions (branch and merge operation) into one of the branches.  This alone has me opening and closing three different projects.  Another client might have me work on a bug fix at one time and the main project of the month at another.

Opening each of those requires that I fire up Visual Studio and wait a bit while it loads, and then open the solution file or web application for whatever I need to work on.

Did you know you can shave a significant amount of time by telling Visual Studio to not load the splash screen when it starts up?  Your mileage may vary, but it definitely helped me.

In your shortcut that you probably already have for starting Visual Studio, either in the menu or the quick launch bar, all you need to do is to add the /nosplash parameter to the command line.

“C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe” /nosplash

To be fair I just learned this from someone who posted on twitter this week.  The original article I learned this from is here:

The next trick allows me to start a solution at the same time that I start Visual Studio.  So with one click, I’m starting up Visual Studio and loading my project.  This saves me a lot of time, especially with projects that I’ve named the same name, but live in two different directories.

“…\devenv.exe” “path to solution file”

You can copy an paste your exising shortcut file to a new shortcut file and then modify the Target field to have the additional solution parameter.

To use both of these together, put the solution file first and the /nosplash second.

To see other command line options, run devenv.exe with the /? parameter.

Other places talking about Visual Studio Command Line:

Build Silverlight Visual Studio Project from a command line : The … – Microsoft portal site for the Silverlight development community. Download Silverlight, post to the forums, read Silverlight blogs and learn about Silverlight.

Part 2: Setting up a continuous integration environment for Visual … – Part 2: Setting up a continuous integration environment for Visual Studio 2008 and .NET Framework 3.5 – Setting up Subversion 1.5.4 at the build machine. Last time on the part 1 of this series, we downloaded the tools required for our …

Visual Studio Command Line Build Troubles – You can build Visual Studio projects by the command line with the following switches devevnv.exe /rebuild to rebuild the entire solution. For example devenv.exe my_solution.sln /rebuild Release or to build a single project devenv.exe …

How to open a website in Visual Studio 2005 from the command line … – I’ve seen several queries asking how to launch Visual Studio 2005 opening a specific folder as a website from the command line. Unfortunately Visual Studio 2005 does not support this by default but you can enable the scenario by writing …

Related Post

Leave a Reply

Comment Policy:

  • You must verify your comment by responding to the automated email that is sent to your email address. Unverified comments will never show.Leave a good comment that adds to the conversation and I'll leave your link in.
  • Leave me pure spam and I'll delete it.
  • Leave a general comment and I'll remove the link but keep the comment.

Notify me of followup comments via e-mail