I see. So the need for the fix was to be expected = it was a breaking change
I have searched for the “1.25” version in the forum, found nothing. Is there any changelog for the extension? Anyway, this is a breaking change, so it would be great to increase the major version next time. If not for the extension, then 100% for the task…
- task: SonarCloudAnalyze@2 #<---- this is the version I was refering to ...please upgrade this in case any future breaking changes!
displayName: Run SonarQube analysis
We just saw the fact that using the “UseDotNetCore” task (which we were recommending as a workaround before) hides every other version of .NET Core SDK that are installed on the machine, that wasn’t expected on our side for sure.
I think you can pretty much safely remove it, as it should look after any 3.1 installed, and this is present in the ubuntu image you are using.
Yes indeed. However can we agree that change of the runtime, i.e. change from runtime .net core 2.x → 3.x is breaking? Can this be handled from your side better in the future? i.e. increasing the major version / version for the task as usual and expected by the other extensions? We are using tens of extensions for our Azure DevOps projects. Now the sonarcloud pipeline is integrated to tens of projects and hundreds of people depends on successful run of these pipelines. It is indeed really a big issue for us when such pipelines starts failing unexpectedly (i.e. because the new version of the extension installs automatically).
Can this be handled from your side better in the future = increasing major/extension version when doing breaking changes?
Yes I’m sorry for the problems this has caused. We thought the impact would be minor as .NET Core 3.1 SDK is installed on azure agents, but we hadn’t considered that the workaround for .NET Core 2.0 that uses the UseDotNet task would cause a problem. As you know we reacted late to .NET 2.0 going out of support and then didn’t have much time to consider the impact of the update. We’ve made some changes internally to ensure that the Scanner for .NET and associated extensions are better cared for from now on and we are planning to make improvements to both in the future. We’ll be careful with task versioning as you suggest.