Skip to content

[error]could not detect installed version with .net 8.0.200 sdk #12

Description

@nanney54

Hi,

I'm using the latest .NET 8.0.200 sdk on my azure pipeline and i have this issue Error: could not detect installed version.

After some research, i found an opened issue on dotnet/sdk repo #38355, #37879
This change seems to correspond with your code in task.ts where you inspect the stdout.

    var regex = new RegExp(`^Tool '${name}' \\(version '([\\d\\.]+[^']*)'\\) was successfully installed\\.$`, "mi");
    var match = res.stdout.match(regex);
    if (match)
    {
        version = match[1];
        tl.debug(`detected installed version ${version}`);
    }


    if (!match || !version)
    {
        throw new Error("could not detect installed version");
    }

The workaround is to set verbosity to minimal but it is not possible with your task.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions