From 0a8cad3c6ace81f7fd4a25ab564bc59f53cb98c1 Mon Sep 17 00:00:00 2001 From: Victor Usoltsev Date: Fri, 30 Aug 2019 23:24:10 +1200 Subject: [PATCH] Updates nuget symbol generation to the new format. --- Scripts/Build.ps1 | 2 +- Scripts/PublishPackages.ps1 | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/Scripts/Build.ps1 b/Scripts/Build.ps1 index 5d5dd6e..89c9240 100644 --- a/Scripts/Build.ps1 +++ b/Scripts/Build.ps1 @@ -86,7 +86,7 @@ task Test { task NugetPackage{ Foreach ($projectPath in $ProjectsToPublish) { - exec { MSBuild "/t:pack" "/p:IncludeSource=true" "/p:Configuration=$VsConfiguration" $projectPath "/p:PackageOutputPath=$PackageDirectory" } + exec { MSBuild "/t:pack" "/p:IncludeSource=true" "/p:SymbolPackageFormat=snupkg" "/p:Configuration=$VsConfiguration" $projectPath "/p:PackageOutputPath=$PackageDirectory" } } } diff --git a/Scripts/PublishPackages.ps1 b/Scripts/PublishPackages.ps1 index 5e10376..fb45694 100644 --- a/Scripts/PublishPackages.ps1 +++ b/Scripts/PublishPackages.ps1 @@ -33,21 +33,11 @@ function Get-Approval-To-Execute { function Publish-Packages { param ( [System.Array] $Packages) - $nugetExeFile = Get-Item -Path $NugetDir - - $symbolsPackagesPattern = ".*.symbols.nupkg" - $nugetPackagesPattern = ".*(?