Skip to content

Impossible to retrieve package versions list with DotNetSearchPackage #4454

Description

@spirit11

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake Frosting

Cake version

5.0.0

Operating system

Windows

Operating system architecture

x64

CI Server

No response

What are you seeing?

Following code in a cake frosting task produces null values output:

var dotNetPackageSearchItems = context.DotNetSearchPackage("Refit.Newtonsoft.Json",
    new DotNetPackageSearchSettings {
        ExactMatch = true
    }
);
foreach (var dotNetPackageSearchItem in dotNetPackageSearchItems) {
    context.Information(dotNetPackageSearchItem.Version);
}

What is expected?

Available package versions list should be retrieved.

Steps to Reproduce

  • Create a cake frost project
  • Add a task including given code snippet
  • Run task

Output log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions