-
-
Save justinyoo/9583864053375698e0e3bb874cc67ef7 to your computer and use it in GitHub Desktop.
Azure DevOps Series
This file contains 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