Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Nuget and C++ PDB

$
0
0

I am creating my own C++ nuget package for a static library that i compile (with /Zi). I added the .pdb of the library to the nuget package, alongside the .lib, but i can't include it while building the application. I get this linker error:

Warning LNK4204: 'xxx\Release\vc110.pdb' is missing debugging information for referencing module; linking object as if no debug info

How can I instruct VisualStudio, trought the .targets or .props file released with nuget, where it should find the .pdb?

Obviously, the path embedded in the .lib does not exist on my machine.

Is compiling the static library with /Z7 the only option?

Thanks


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>