.net - NuGet: include .pdb files and exclude the "Content" folder -



.net - NuGet: include .pdb files and exclude the "Content" folder -

i've incorporated next line in ci-build create private nuget bundle on each build:

nuget pack c:\projects\test\test.vbproj -outputdirectory \\nas1\nuget

the assemblyinfo read (including version number) , nuget bundle created. i'd bundle include .pdb files , not contain "content" folder (so 'lib').

how can change command that?

unfortunately, don't think you'll able both exclude content files and include .pdb files while packing via project. 1 or other.

first, create nuspec file (the nuget spec command makes quick) , set in same location project. when pack project, nuget.exe treat spec supplement project's info.

to eliminate content folder, when packing project has .nuspec file, empty <files /> node in spec indicate don't want content files, if exist in project.

to include debug files, add together spec:

<files> <file src="bin\*.pdb" target="lib\net35\" /> </files>

but tell tool do have content, , add together other files, well. could, perhaps, create symbol package project, instead.

another alternative build exclusively spec (nuget pack test.nuspec), , specify files want include. it's more time consuming, gives finish command on package's contents.

.net visual-studio nuget nuget-package

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -