The nuget package with characters is missing the "content" directory

I use nuget to pack some assemblies and additional files.

I need to save the characters separately, so I use "nuget pack -symbols", which creates two separate nupkg files.

The problem is that the .symbols.nupkg package contains only the "lib" directory (with PDB and DLL). It lacks “tools” and “content”.

This means that when someone installs .symbols.nupkg, they do not receive additional files under the "content". And since .symbols.nupkg has the same package identifier as the main .nupkg, nuget will never install the main package that has “content” in it.

This is the same nuspec file that creates both packages, so I cannot control it.

Am I doing something wrong or misunderstanding how to use a character pack?

+6
source share
1 answer

The problem is that * * .symbols.pckg should be stored at www.symbolsource.org (or in the local character field)

Sumbols.pckg does not replace the real package. This is an addon. Publish your package to submit your feed and character pack to a character feed.

But you can really include pdb files in the package. Add this to the nuspec file

<files> <file src="bin\$configuration$\$id$.pdb" target="lib\net45\" /> </files> 
+5
source

Source: https://habr.com/ru/post/947820/


All Articles