Skip to content

Commit

Permalink
Another change to packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mtirionMSFT committed Nov 21, 2024
1 parent cc0e2fc commit 47cb50a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ if (Test-Path -Path $solution.assetZipPath) {
foreach ($sln in (Get-ChildItem -Recurse src\*\*.csproj -Exclude *.Test.*)) {
Write-Host "Building $($sln.FullName)"
& dotnet publish $sln.FullName -c Release -r win-x64 /p:PublishSingleFile=true /p:CopyOutputSymbolsToPublishDirectory=false --self-contained false -o $solution.targetFolder
Write-Host "Packing $($sln.FullName)"
& dotnet pack $sln.FullName -c Release -p:PackAsTool=true -o ./artifacts
}

# Package NuGet packages
Write-Host "Package .\src\DocFxCompanionTools.sln"
dotnet pack .\src\DocFxCompanionTools.sln -c Release -p:PackAsTool=true -o ./artifacts
Get-ChildItem ./artifacts
Get-ChildItem

# remove possible generated XML documentation files
Remove-Item "$($solution.targetFolder)\*.xml"
Expand Down

0 comments on commit 47cb50a

Please sign in to comment.