Skip to content

Instantly share code, notes, and snippets.

@davecowart
Created July 3, 2012 15:01
Show Gist options
  • Save davecowart/3040279 to your computer and use it in GitHub Desktop.
Save davecowart/3040279 to your computer and use it in GitHub Desktop.
VS Open Function
#If you're in a folder with a solution file, it'll open the solution - otherwise it'll just open Visual Studio
Set-Alias vs "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
function vso {
$SolutionFile = @(gci *.sln)[0]
vs $SolutionFile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment