Nuget package can only include explicitly specify a list of files in the .nuspec file?

Topics: Ecosystem, General
Feb 5, 2013 at 4:02 AM
Edited Feb 5, 2013 at 5:40 AM
i hava a asp.net mvc 4 project:
  • project
    • nuget
      • content
        • .js ,.css and *.jpg
    • content
      • .js ,.css and *.jpg /* build action is content */
    • Views
      • web.config
    • Plugin.config

in project.nuspec file:
<package>
<metadata>
<id>project</id>
<version>$version$</version>
<!-- …… -->
</metadata>

<files>
__<file src="nuget\content\\**\\\*.\*" target="content\content\" />__
__<file src="Plugin.config" target="content\" />__
__<file src="Views\web.config" target="content\Views\" />__
</files>
</package>

execute nuget command below:
nuget pack project.csproj -Build

It's create a package that's include all files above in the project...

I can only include explicitly specify a list of files in the .nuspec file?