The default behavior of nuget pack is great when its called against a csproj. It will look at the corresponding nuspec and packages.config files and it will automatically include dependencies.
However, not all dependencies are runtime dependencies. Some dependencies are build-time tools type dependencies.
I don't see a convenient means of excluding a package dependency that doesn't need to ship with the resulting nupkg file.
I would like to see this added as a feature. A simple means of excluding dependencies in the .nuspec file would suffice.
However, not all dependencies are runtime dependencies. Some dependencies are build-time tools type dependencies.
I don't see a convenient means of excluding a package dependency that doesn't need to ship with the resulting nupkg file.
I would like to see this added as a feature. A simple means of excluding dependencies in the .nuspec file would suffice.