This project has moved and is read-only. For the latest updates, please go here.

Use this for Css/Javascript only

Mar 2, 2015 at 6:01 PM
I like how I can use your project for C# and web content (via explicit nuspec file).

Is there any way to tell this packager to not include the automatically generated .dll file? I assume a post build step could delete the dll but there may be a better way.

This web content only project doesn't have any C# files but understandably a class library project still creates a DLL. Can I remove this from the package somehow?

I tried file exclude *.dll with no success.
Mar 4, 2015 at 11:09 PM
The powershell script simply passes parameters to the NuGet.exe, so if it's possible to do it with NuGet.exe, then it's possible to do it with this PowerShell script.

Looking at the NuGet docs, it seems like you are correct that you would simply add an exclude node to your files list in the .nuspec file:
  <file src="bin\Debug\*.dll" target="lib" /> 
  <file src="bin\Debug\*.pdb" target="lib" /> 
  <file src="tools\**\*.*" exclude="**\*.log" />
Mar 4, 2015 at 11:10 PM
Edited Mar 4, 2015 at 11:12 PM
Hmmmm, it looks like other people who have tried to automate the process as part of their build (not using my PowerShell script / NuGet package) have run into the same problem.

You might want to create a new Issue on the NuGet site to get them to fix this.