Last active
July 23, 2017 03:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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