Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active April 30, 2016 11:11
Show Gist options
  • Save justinyoo/9583864053375698e0e3bb874cc67ef7 to your computer and use it in GitHub Desktop.
Save justinyoo/9583864053375698e0e3bb874cc67ef7 to your computer and use it in GitHub Desktop.
Azure DevOps Series
$runtime = "dnx-clr-win-x64.1.0.0-rc1-update1"
$pwd = pwd
# Publishes the application projects only.
$projects = Get-ChildItem .\src | ?{ $_.PSIsContainer } | ?{ Test-Path -Path (Join-Path $_.FullName "Startup.cs") }
foreach ($project in $projects)
{
dnu publish $project.FullName `
--out "$($pwd.Path)\publish\$($project.Name)" `
--configuration Release `
--runtime $runtime `
--wwwroot "wwwroot" --wwwroot-out "wwwroot" --iis-command "web"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment