Skip to content

combining --disable-package-restore and --target-framework (with prior restore) does not work #1101

Description

@MaxEtMoritz

I currently generate a seperate BOM for each target framework of my library projects (because the dependencies differ between frameworks and i want to minimize false positive vulnerability alerts).
With about ten separate packages and five target frameworks for each package, i end up invoking the tool about fifty times in a loop.
I had the idea to speed up the generation process by running a global NuGet restore on the complete solution up front and then invoke the tool with -tfm XYZ and --disable-package-restore.

But this does not work, all dependencies of all targets are combined into each bom, the -tfm switch is ignored.
Although looking into the assets.json, the dependencies are listed for each target framework separately, so in theory filtering the assets.json info by target framework should be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageDon't know what to do with this yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions