You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for a NuGet Package with the Find-Package command no packages are found unless you add a wildcard character to the value of the name parameter. Find-Package -Name PackageName -Source Test -Credential (Get-Credential) does not work but Find-Package -Name PackageName* -Source Test -Credential (Get-Credential) does
The problem with this behavior is that it's not possible to find a package by the exact name, so a package called PackageName123 would also be returned and it also is not possible to combine a wildcard search with the AllVersions flag
Expected behavior
PS> Find-Package -Name PackageName -Source Test -Credential (Get-Credential)Name Version Source Summary---- ------- ------ -------PackageName 1.0.0 Test Package Description
Actual behavior
PS> Find-Package -Name PackageName -Source Test -Credential (Get-Credential)Find-Package: No match was found for the specified search criteria and package name 'STYX.Blazor.UI.Attribute'. Try Get-PackageSource to see all available registered package sources.PS> Find-Package -Name PackageName* -Source Test -Credential (Get-Credential)Name Version Source Summary---- ------- ------ -------PackageName 1.0.0 Test Package Description
Error details
PS> Get-ErrorException : Type : System.Exception Message : No match was found for the specified search criteria and package name 'PackageName'. Try Get-PackageSource to see all availableregistered package sources. HResult : -2146233088TargetObject : Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackageCategoryInfo : ObjectNotFound: (Microsoft.PowerShel…Cmdlets.FindPackage:FindPackage) [Find-Package], ExceptionFullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackageInvocationInfo : MyCommand : Find-Package ScriptLineNumber : 1 OffsetInLine : 1 HistoryId : 7 Line : Find-Package -Name PackageName -Source Test -Credential (Get-Credential) PositionMessage : At line:1 char:1 + Find-Package -Name PackageName -Source Test -Credential … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : Find-Package CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, <No file>: line 1PipelineIterationInfo :
The text was updated successfully, but these errors were encountered:
Steps to reproduce
When searching for a NuGet Package with the Find-Package command no packages are found unless you add a wildcard character to the value of the name parameter.
Find-Package -Name PackageName -Source Test -Credential (Get-Credential)
does not work butFind-Package -Name PackageName* -Source Test -Credential (Get-Credential)
doesThe problem with this behavior is that it's not possible to find a package by the exact name, so a package called PackageName123 would also be returned and it also is not possible to combine a wildcard search with the AllVersions flag
Expected behavior
Actual behavior
Error details
The text was updated successfully, but these errors were encountered: