Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kmorcinek
Created December 11, 2017 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmorcinek/20e30e2c1455d26ac40e2d749bfc61cf to your computer and use it in GitHub Desktop.
Save kmorcinek/20e30e2c1455d26ac40e2d749bfc61cf to your computer and use it in GitHub Desktop.
Task BuildInReleaseToAssertStyleCop -Depends Build {
$tempReleaseOutputPath = $build_artifacts_dir + "ReleaseToAssertStyleCop"
Ensure-Directory-Is-Clean $tempReleaseOutputPath
Write-Host "Building $solution_name.sln in Release" -ForegroundColor Green
RunMsBuild { msbuild "$code_dir\$solution_name.sln" /t:Build /p:Configuration=Release /v:quiet /p:OutDir=$tempReleaseOutputPath }
Remove-Item $tempReleaseOutputPath -rec -force | out-null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment