Skip to content

Commit 521b54e

Browse files
authored
Include Windows pdb in Nuget (#82)
* Include Windows pdb in Nuget * Bump version * use a wildcard * use a wildcard * use RelWithDebInfo configuration for the build
1 parent 9853933 commit 521b54e

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

LibZipSharp.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
3-
<_LibZipSharpNugetVersion>1.0.22</_LibZipSharpNugetVersion>
3+
<_LibZipSharpNugetVersion>1.0.23</_LibZipSharpNugetVersion>
44
</PropertyGroup>
55
</Project>

azure-pipelines.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ stages:
3232
displayName: "Build"
3333
- task: ArchiveFiles@2
3434
inputs:
35-
rootFolderOrFile: build\Windows\32\lib\Release\zip.dll
35+
rootFolderOrFile: build\Windows\32\lib\RelWithDebInfo\
3636
includeRootFolder: false
3737
archiveType: 7z
3838
replaceExistingArchive: true
3939
archiveFile: $(Build.ArtifactStagingDirectory)\libzip-windows-x86.7z
4040
- task: ArchiveFiles@2
4141
inputs:
42-
rootFolderOrFile: build\Windows\64\lib\Release\zip.dll
42+
rootFolderOrFile: build\Windows\64\lib\RelWithDebInfo\
4343
includeRootFolder: false
4444
archiveType: 7z
4545
replaceExistingArchive: true
@@ -144,6 +144,8 @@ stages:
144144
mv build/Linux/64/libzip.so.5.3 build/Linux/64/libzip.so
145145
mv build/Windows/32/zip.dll build/Windows/32/libzip.dll
146146
mv build/Windows/64/zip.dll build/Windows/64/libzip.dll
147+
mv build/Windows/32/zip.pdb build/Windows/32/libzip.pdb
148+
mv build/Windows/64/zip.pdb build/Windows/64/libzip.pdb
147149
rm $(Build.ArtifactStagingDirectory)/native/libzip-linux-*.7z
148150
rm $(Build.ArtifactStagingDirectory)/native/libzip-windows-*.7z
149151
displayName: 'Find libzip'

build_windows.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ pushd .
1616
mkdir .\build\Windows\64
1717
cd .\build\Windows\64
1818
cmake %LIBZIP_FEATURES% %COMMON_CMAKE_PARAMS% -DZLIB_ROOT=..\..\..\external\vcpkg\installed\x64-windows-static -A x64 ..\..\..\external\libzip
19-
cmake --build . --config Release -v
19+
cmake --build . --config RelWithDebInfo -v
2020
popd
2121
pushd .
2222

2323
mkdir .\build\Windows\32
2424
cd .\build\Windows\32
2525
cmake %LIBZIP_FEATURES% %COMMON_CMAKE_PARAMS% -DZLIB_ROOT=..\..\..\external\vcpkg\installed\x86-windows-static -A Win32 ..\..\..\external\libzip
26-
cmake --build . --config Release -v
26+
cmake --build . --config RelWithDebInfo -v
2727
popd

libZipSharp.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
</None>
5454
<None Include="build\Darwin\64\lib\libzip.5.3.dylib" PackagePath="runtimes\osx\native\libzip.dylib" Pack="true" />
5555
<None Include="build\Windows\64\libzip.dll" PackagePath="runtimes\win-x64\native\libzip.dll" Pack="true" />
56+
<None Include="build\Windows\64\libzip.pdb" PackagePath="runtimes\win-x64\native\libzip.pdb" Pack="true" />
5657
<None Include="build\Windows\32\libzip.dll" PackagePath="runtimes\win-x86\native\libzip.dll" Pack="true" />
58+
<None Include="build\Windows\32\libzip.pdb" PackagePath="runtimes\win-x86\native\libzip.pdb" Pack="true" />
5759
<None Include="build\Linux\64\libzip.so" PackagePath="runtimes\linux-x64\native\libzip.so" Pack="true" />
5860
<None Include="build\Linux\32\libzip.so" PackagePath="runtimes\linux-x86\native\libzip.so" Pack="true" />
5961
<None Include="LICENSE" PackagePath="Licences" Pack="true" />

0 commit comments

Comments
 (0)