Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 7612


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>