Browse Source

Update setup_self.ps1

Kevin Howard 12 years ago
parent
commit
76753fddfe
1 changed files with 4 additions and 3 deletions
  1. 4 3
      servicestack/setup_self.ps1

+ 4 - 3
servicestack/setup_self.ps1

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