Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/dnu-publish.ps1 Secret
Last active Apr 30, 2016

What would you like to do?
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
You can’t perform that action at this time.