Skip to content

Instantly share code, notes, and snippets.

View matiascarranza's full-sized avatar

Matias Carranza matiascarranza

View GitHub Profile
@i-e-b
i-e-b / publish.ps1
Created June 6, 2012 11:43
MSBuild commands for "Publish Website" behaviour
$build = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe"
$SolutionPath = "C:\Projects\AdminWebSite"
$SolutionFile = "AdminWebSite.sln"
$WebProjectFile = "Admin.Web\Admin.Web.csproj"
$OutputPath = "C:\PublishedSites\Hosts\adminweb"
& $build "$SolutionPath\$SolutionFile" /t:rebuild
& $build "$SolutionPath\$WebProjectFile" "/t:ResolveReferences;_CopyWebApplication;publish" /p:OutDir="$OutputPath\bin\" /p:WebProjectOutputDir="$OutputPath"