Skip to content

Commit

Permalink
Include source in package builds; use implicit build via dotnet pack
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Aug 30, 2017
1 parent 67ff309 commit 9a1b806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ foreach ($src in ls src/*) {

echo "build: Packaging project in $src"

& dotnet build -c Release --version-suffix=$buildSuffix
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
if($suffix) {
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix
} else {
& dotnet pack -c Release --include-source -o ..\..\artifacts
}
if($LASTEXITCODE -ne 0) { exit 1 }

Pop-Location
Expand Down

0 comments on commit 9a1b806

Please sign in to comment.