setup_self.ps1 609 B

12345678910111213141516
  1. param($action)
  2. $source = "C:\FrameworkBenchmarks\servicestack\src"
  3. $msbuild = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
  4. # Stop
  5. Stop-Process -Name servicestack -ErrorAction 'SilentlyContinue' | Out-Null
  6. if ($action -eq 'start') {
  7. # Build the project
  8. &$msbuild "$source\ServiceStackBenchmark.sln" /t:RestorePackages
  9. &$msbuild "$source\ServiceStackBenchmark.sln" /p:DownloadNuGetExe=true /p:RequireRestoreConsent=false /p:Configuration=Release /p:Platform=x64 /t:Rebuild
  10. Start-Process "$source\SelfHost\bin\Release\ServiceStackBenchmark.SelfHost.exe http://*:8080"
  11. }