This project has moved. For the latest updates, please go here.

Possibly erroneous behavior?

Mar 21, 2015 at 9:42 AM
Edited Mar 21, 2015 at 9:43 AM
I've experienced some issues with the created nupkg not matching the .nuspec and basically including everything.

I've tried to run the nuget pack .nuspec manually on the project, and the behaviour is different as it's actually following the .nuspec and not including anything else from the project not defined in the .nuspec.

To reproduce, simply create a small console application and put some dummy files there. Then create a .nuspec only including one of those files and nothing else. If you now run nuget.exe manually, the resulting .nupkg will only contain this one file. But if you install this package and build, now the .nupkg will include everything in the project even if not specified in the .nuspec.

Whats up?
Mar 22, 2015 at 3:21 PM
Hmmm, that is strange. Could you provide me with sample .nuspec file contents so I can easily reproduce it please. Or better yet, zip up your entire small sample console application and .nuspec file and email it to me so I will be using all of the exact same files that you are.