-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
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/
Kebechet