Another PS script to host a .NET 4.x app using Mono/XSP
$XspHostAddress = "127.0.0.1"
$XspHostPort = "8000"
$WebAppRoot = "Path/To/App/Root"
function Debug
{
Invoke-Expression 'xsp4 --address $XspHostAddress --port $XspHostPort --root "$WebAppRoot"'
}
function LaunchBrowser
{
$browser = New-Object -ComObject InternetExplorer.Application
$browser.Navigate2([String]::Format("http://{0}:{1}", $XspHostAddress, $XspHostPort))
$browser.Visible = $true
}
LaunchBrowser
Debug
Written by Jorge Medina
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Powershell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#