Skip to content

Instantly share code, notes, and snippets.

@tekmaven
Created February 17, 2017 18:30
Show Gist options
  • Save tekmaven/3b345bcf6a0dce6468bcbcf013a9b9b7 to your computer and use it in GitHub Desktop.
Save tekmaven/3b345bcf6a0dce6468bcbcf013a9b9b7 to your computer and use it in GitHub Desktop.
Launch Visual Studio solution in current directory
function openFirstSlnFile() {
& ".\\$(dir *.sln | select -first 1 -expand Name)"
}
Set-Item -Path alias:vs -value openFirstSlnFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment