Skip to content

Way to specify .nupkg file name? #10834

@jonathanpeppers

Description

@jonathanpeppers

Details about Problem

It appears that NuGet creates a file name for .nupkg files such as:

$(PackageId).$(PackageVersion).nupkg

Where this gets weird, is with the .NET Workload Spec.

If we need to make a package with:

  • PackageId: Microsoft.NET.Sdk.Android.Manifest-6.0.200
  • PackageVersion: 11.0.200-preview.4.245

We end up with the file named: Microsoft.NET.Sdk.Android.Manifest-6.0.200.11.0.200-preview.4.245.nupkg

Is there a way to put a - in the file name instead of a .? Or just an MSBuild property to set any custom file name?

If not, consider this a "feature request". Thanks!

Repro steps and/or sample project

I think you could just pack a new .csproj with $(PackageId) and $(PackageVersion) as in the example above.

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