Browse Source

Updated setup_iis.ps1 to match aspnet setup_iss.ps1

It appears that the build script wasn't set to Restore missing dependencies.
Kevin Howard 12 years ago
parent
commit
ce8775c028
1 changed files with 4 additions and 3 deletions
  1. 4 3
      servicestack/setup_iis.ps1

+ 4 - 3
servicestack/setup_iis.ps1

@@ -7,15 +7,16 @@ $msbuild = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
 
 
 # Stop
 # Stop
 if (Get-WebSite -Name Benchmarks) { Remove-WebSite -Name Benchmarks }
 if (Get-WebSite -Name Benchmarks) { Remove-WebSite -Name Benchmarks }
-Get-ChildItem -Path $wwwroot -Recurse -ErrorAction 'SilentlyContinue' | Remove-Item -Force -Recurse -ErrorAction 'SilentlyContinue'; 
-Remove-Item -Force -Recurse $wwwroot -ErrorAction 'SilentlyContinue'
+Get-ChildItem -Path $wwwroot -Recurse -ErrorAction 'SilentlyContinue' | Remove-Item -Force -Recurse -ErrorAction 'SilentlyContinue' | Out-Null
+Remove-Item -Force -Recurse $wwwroot -ErrorAction 'SilentlyContinue' | Out-Null
 
 
 if ($action -eq 'start') {
 if ($action -eq 'start') {
     # Create a website in IIS
     # Create a website in IIS
-    New-Item -Path $wwwroot -Type directory | Out-Null
+    New-Item -Path $wwwroot -Type Directory -ErrorAction 'SilentlyContinue' | Out-Null
     New-WebSite -Name Benchmarks -Port 8080 -PhysicalPath $wwwroot
     New-WebSite -Name Benchmarks -Port 8080 -PhysicalPath $wwwroot
     
     
     # Build the project
     # Build the project
+    &$msbuild "$source\ServiceStackBenchmark.csproj" /t:ResotrePackages
     &$msbuild "$source\ServiceStackBenchmark.csproj" /p:Configuration=Release /p:Platform="x64" /t:Clean
     &$msbuild "$source\ServiceStackBenchmark.csproj" /p:Configuration=Release /p:Platform="x64" /t:Clean
     &$msbuild "$source\ServiceStackBenchmark.csproj" /p:Configuration=Release /p:Platform="x64" /p:DeployOnBuild=true /p:PublishProfile=IIS
     &$msbuild "$source\ServiceStackBenchmark.csproj" /p:Configuration=Release /p:Platform="x64" /p:DeployOnBuild=true /p:PublishProfile=IIS
 }
 }