Skip to content

Development Dependencies are not excluded as expected #4

Description

@pseabury

If I build a package with NuPack and a NuPackExtension, those get included in my BNuget package even though they are marked as development dependencies. I believe this is incorrect.

I think you can fix this by just filtering your dependency scan with :

.Where(_Package => _Package.Id != "NuPack" && !_Package.IsDevelopmentDependency)

That way when I have a library with no real dependencies, consumers aren't pulling a bunch of unnecessary packages. For instance, my library has no real dependencies, and shouldn't need to be published with any NuPack libraries.

<packages>
  <package id="NuGet.CommandLine" version="4.1.0" targetFramework="net462" developmentDependency="true" />
  <package id="NuPack" version="3.4.2" targetFramework="net462" developmentDependency="true" />
  <package id="NuPackPublishExtension" version="1.0.0.25" targetFramework="net462" developmentDependency="true" />
</packages>

Paul

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions