I’m running into an issue after porting my project from .NET Core 3.1 to .NET 5.
Since then, my Azure DevOps build is failing on the “SonarCloud Prepare” step, version 1.20.0 with the following error:
##[error]It was not possible to find any compatible framework version
It was not possible to find any compatible framework version
##[error]The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
- The following frameworks were found:
5.0.7 at [/opt/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=ubuntu.20.04-x64
The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
- The following frameworks were found:
5.0.7 at [/opt/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=ubuntu.20.04-x64
##[error]The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 150
However, there’s not a single reference to the Microsoft.NETCore.App in version 2.0.0.
I’m confused where that error is comming from. Every project is referencing version 5.0.0.
I’m using the latest Azure DevOps extension version in the build.
The pipeline is running on ubuntu-20.04, with the latest .NET 5 SDK.
