Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active April 30, 2016 11:11
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