Skip to content

Add hook for excluding certain build output extensions from the nuget package  #10690

@Anipik

Description

@Anipik

Currently there is no way to exclude certain output extensions from the package.

https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.targets#L48

adding something like should do the trick

<AllowedOutputExtensionsInPackageBuildOutputFolder Condition="'$(AllowedOutputExtensionsInPackageBuildOutputFolder)' == ''">.dll; .exe; .winmd; .json; .pri; .xml; $(AllowedOutputExtensionsInPackageBuildOutputFolder)</AllowedOutputExtensionsInPackageBuildOutputFolder>

cc @safern @nkolev92 @ericstj @ViktorHofer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions