JoelHT-Landmark / NuGet-PackageNPublish

Project template and packaging targets file to allow easier Package'n'Publish integration with TFS (or other CI) builds.
Other
13 stars 12 forks source link

Packaging project includes DLLs from dependent packages #3

Closed JoelHT-Landmark closed 11 years ago

JoelHT-Landmark commented 12 years ago

When a new package is added to the dependencies of a packaging project using the NuGet UI or PS tools, or when a package is updated via the same mechanism, the reference in the packaging project is set to CopyLocal=true.

This causes the DLL to be copied to the Packages folder on build, and hence be included in the generated package (not expected behavior).

An additional pre-build step is required to set CopyLocal=false for any DLL referenced by the Packaging project that is referenced out of the solution's packages folder. This will prevent extraneous DLLs being added to the package (and remove the manual fix-up that is currently needed).

JoelHT-Landmark commented 11 years ago

Definitely fixed in release v0.7.0.0.