Skip to content

Instantly share code, notes, and snippets.

@erichexter
Created July 10, 2013 02:54
Show Gist options
  • Save erichexter/5963124 to your computer and use it in GitHub Desktop.
Save erichexter/5963124 to your computer and use it in GitHub Desktop.
Solution script to start up iis on a webproject
#start iis with the console window up, so we can see trace messages from the website while were doing front end development.
function global:start-iis(){
param($port="14062",$wwwdir="website")
$websitepath=$dte.solution.FileName | split-path | join-path -childpath $wwwdir
&start 'C:\Program Files (x86)\IIS Express\iisexpress.exe' "/trace:none /path:$websitepath /port:$port"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment