/dnu-publish.ps1 Secret
Last active
April 30, 2016 11:11
Azure DevOps Series
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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