Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Exclude files except the minified version in NuSpec file

$
0
0

I have a NuSpec file to create a NuGet package. I have some .js files that are minified and I don't want the original .js files in the NuGet package.

I have tried to use ! to not exclude minified files.

<files><file src="v1\**" target="v1" exclude="!v1\**\*.min.js;v1\**\*.js" /></files>

This only doesn't work, it will delete the .js and .min.js files.

What kind of syntax can I use to achieve this?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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