diff --git a/nupkg/pack.ps1 b/nupkg/pack.ps1 index 88c945ef5a5..8c1dcdf10c9 100644 --- a/nupkg/pack.ps1 +++ b/nupkg/pack.ps1 @@ -15,7 +15,7 @@ foreach($project in $projects) { # Create nuget pack Set-Location $projectFolder Remove-Item -Recurse (Join-Path $projectFolder "bin/Release") - & dotnet msbuild /t:pack /p:Configuration=Release /p:SourceLinkCreate=true + & dotnet pack -c Release if (-Not $?) { Write-Host ("Packaging failed for the project: " + $projectFolder) @@ -26,6 +26,8 @@ foreach($project in $projects) { $projectName = $project.Substring($project.LastIndexOf("/") + 1) $projectPackPath = Join-Path $projectFolder ("/bin/Release/" + $projectName + ".*.nupkg") Move-Item $projectPackPath $packFolder + $projectSymbolPackPath = Join-Path $projectFolder ("/bin/Release/" + $projectName + ".*.snupkg") + Move-Item $projectSymbolPackPath $packFolder } # Go back to the pack folder