Skip to content

Commit e008233

Browse files
committed
Move libgit2 PDB files to legacy symbol package
Nuget supports two types of symbol packages: [legacy][1] and [snuget][2]. The latter happens to be the newer implementation. Legacy symbol packages only exist for compatibility. It should be noted that, unfortunately, snuget symbol packages do not support Windows PDBs (the kind you get from C++ code). They only support portable PDBs (managed). As such, this patch provides support for legacy symbol package format. Note the following information from the symbol package MSDN documentation page: > Native projects, such as C++ projects, produce Windows PDBs instead of > Portable PDBs. These are not supported by NuGet.org's symbol server. > Please use Legacy Symbol Packages instead. Fixes libgit2#111 [1]: https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages [2]: https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
1 parent b1ebc75 commit e008233

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: buildpackage.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ $buildDate = (Get-Date).ToUniversalTime().ToString("yyyyMMddHHmmss")
88
$versionSuffix = ""
99
if ($pre.IsPresent) { $versionSuffix = "-pre$BuildDate" }
1010

11-
.\nuget.exe Pack nuget.package\NativeBinaries.nuspec -Version $version$versionSuffix -NoPackageAnalysis
11+
# Create nuget package + legacy symbol pack
12+
# See: https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages
13+
.\nuget.exe pack nuget.package\NativeBinaries.nuspec `
14+
-Symbols `
15+
-Version $version$versionSuffix `
16+
-NoPackageAnalysis

0 commit comments

Comments
 (0)