Closed JoelHT-Landmark closed 11 years ago
One dirty way (if you are 100% sure that you do not need this dependency):
Track "*.NuGetPackage.tt" and look for
var packages = from p in packagesDoc.Descendants("package") select p;
Change that to:
var packages = from p in packagesDoc.Descendants("package") where p.Attribute("id").Value != "NuGet.PackageNPublish" select p;
This is exactly the fix I'm implementing for v0.7 - any dependent packages starting in "NuGet." will be excluded by default. You can always manually add a dependency back in to the TT file if you really do depend on a NuGet.* package.
Fixed in release v0.7.0.0
When the output NuGet package is build the dependencies baked into the metadata are derived by the package.tt from the packages.config file for the packaging project.
However, the packaging project itself has dependencies on NuGet.PackageNPublish and NuGet.Build that should NOT be transferred into the dependencies for the output package.