retifrav / retifrav.github.io

Mirror of my blog, the original thing is at https://decovar.dev/
https://retifrav.github.io
Other
13 stars 2 forks source link

194-azure-devops-nuget-npm-cpp #46

Open retifrav opened 4 years ago

retifrav commented 4 years ago

NuGet C++ package in Azure DevOps Artifacts comments.

Pikbube commented 3 years ago

Hi and many thanks for this nice Blog Entry. What about debugging and source indexing? You use a static lib, and i can't get source indexing to work, because resulting .pdb of a static lib has no source file Path information.

retifrav commented 3 years ago

If you need to add .pdb (or any other) files into the package, you just add them. In my case I simply didn't.

And speaking about Release/Debug, NuGet doesn't really provide means to pack both Release and Debug binaries into one package so build system could switch between them. I discovered it later when I was creating a NuGet package for a C#/.NET library. So here with C++ library I basically just use NuGet almost as a regular archive, but in general, from what I saw on the internets, people create two packages: one for Release and one for Debug.