I'm trying to create a nuget package by using the convention as described here
I think my csproj's output folder looks correct:
[projectPath]/bin/Debug/
- myProject.dll
/build
- myProject.props
/content
- myRuleset.ruleset
- CustomDictionary.xml
The spec file is the default generated spec file with the redundant nodes removed (like update info etc)
I run nuget pack -build
after which the following content is packed in a nupkg file (left out _rels and package as they aren't relevant to the problem):
myProject.1.0.1.0.nupkg
/content
/build
- myProject.props
/lib
- myProject.dll
Why is my build folder inside my content folder?
Where have my content folder's files gone to?
The default generated spec file just gives you a starting point. User need to modify the spec file for nuget pack to work correctly with your project structure.
Please refer to this link http://docs.nuget.org/docs/reference/nuspec-reference, for how to include files to the package.
There is a section named "Specifying Files to Include in the Package" should give more insights.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With