Nuget pack ignores my content and lib folder

I am trying to create a nuget package using the convention described here

I think the csproj output folder looks right:

[projectPath]/bin/Debug/ - myProject.dll /build - myProject.props /content - myRuleset.ruleset - CustomDictionary.xml 

The specification file is a standard generated specification file with remote remote nodes (for example, update information, etc.)

I run nuget pack -build , after which the following content is packaged into a nupkg file (dropdowns from _rels and package, since they are not related to the problem):

 myProject.1.0.1.0.nupkg /content /build - myProject.props /lib - myProject.dll 

Why is my build folder inside the content folder? Where did the files of my content files go to?

+6
source share
1 answer

The spec file created by default simply gives you a starting point. The user must modify the specification file for the nuget package to work properly with your project structure.

Please refer to this link http://docs.nuget.org/docs/reference/nuspec-reference to include files in the package.

There is a section called “Specifying Files to Include in a Package” to give more information.

+4
source

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