Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget pack ignoring my content and lib folder

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?

like image 386
Boris Callens Avatar asked Nov 29 '13 15:11

Boris Callens


1 Answers

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.

like image 193
Dan Liu Avatar answered Oct 06 '22 00:10

Dan Liu