-
-
Save ruslander/eb7cec1ad0d5bd6fc59c to your computer and use it in GitHub Desktop.
PowerShell functions to start/stop IIS Express in the specified directory as a background job
This file contains hidden or 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 WebIt($name, $pathToSource, $port) { | |
Start-Job -Name $name -Arg $pathToSource, $port -ScriptBlock { | |
param ($pathToSource, $p) | |
& 'C:\Program Files (x86)\IIS Express\iisexpress.exe' /port:$p /path:$pathToSource | |
} | |
} | |
WebIt "adm" "..\Management.Web" 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment