Skip to content

Commit

Permalink
install web deploy if not installed when publishing to web
Browse files Browse the repository at this point in the history
  • Loading branch information
mwrock committed Dec 26, 2014
1 parent ecae5e9 commit b95ad83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BuildScripts/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ task Publish-ClickOnce -depends Install-MSBuild {
Copy-Item "$basedir\Boxstarter.Clickonce\bin\Debug\App.Publish\*" "$basedir\web\Launch" -Recurse -Force
}

task Publish-Web -depends Install-MSBuild {
task Publish-Web -depends Install-MSBuild, Install-WebDeploy {
exec { .$msbuildExe "$baseDir\Web\Web.csproj" /p:DeployOnBuild=true /p:PublishProfile="boxstarter - Web Deploy" /p:VisualStudioVersion=12.0 /p:Password=$env:boxstarter_publish_password }
}

Expand Down Expand Up @@ -203,6 +203,10 @@ task Install-WebAppTargets {
}
}

task Install-WebDeploy {
if(!(Test-Path "$env:ProgramW6432\IIS\Microsoft Web Deploy V3")) { cinst webdeploy }
}

function PackDirectory($path, [switch]$AddReleaseNotes){
exec {
$releaseNotes = Get-ReleaseNotes
Expand Down

0 comments on commit b95ad83

Please sign in to comment.