Skip to content

Instantly share code, notes, and snippets.

@rdsimes
Last active July 23, 2017 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdsimes/6190832 to your computer and use it in GitHub Desktop.
Save rdsimes/6190832 to your computer and use it in GitHub Desktop.
Super useful powershell scripts for stopping and starting Visual Studio for the solution in your working directory
function Stop-Vs {
$currentApp = Split-Path $pwd -leaf
Get-Process -Name devenv | where {$_.mainWindowTitle -like "*$currentApp*"} | Stop-Process
}
function Start-Vs {
$currentApp = Split-Path $pwd -leaf
& .\$currentApp.sln
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment