Skip to content

Wildcard in "dotnet nuget push" (Windows/Ubuntu) #39569

@carsten-riedel

Description

@carsten-riedel

Describe the bug

On Windows and Linux, the behavior of using wildcards with the dotnet nuget push [source] command differs.

To Reproduce

Ubuntu

Works on ubuntu 22.04 dotnet version 8.0.203

dotnet nuget push "src/Projects/PackageName/bin/Pack/PackageName.*.nupkg" --api-key $SECRET --source https://api.nuget.org/v3/index.json
Pushing PackageName.0.1.8842.15630.nupkg to 'https://www.nuget.org/api/v2/package'...
  PUT https://www.nuget.org/api/v2/package/
  Created https://www.nuget.org/api/v2/package/ 636ms
Your package was pushed.

Windows

Does not work on windows10 dotnet version 8.0.203

dotnet nuget push "src/Projects/PackageName/bin/Pack/PackageName.*.nupkg" --api-key $SECRET --source https://api.nuget.org/v3/index.json

Results in error

error: File does not exist (src/Projects/PackageName/bin/Pack/PackageName.*.nupkg).

Note

I had one package in the directory src/Projects/PackageName/bin/Pack/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions