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
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.
The workaround is to set verbosity to minimal but it is not possible with your task.
Thanks