Error in Azure Devops pipeline while using SonarCloud extension

I am trying to setup SonarCloud code analysis in VSTS pipeline. Getting below error with step “Prepare analysis on SonarCloud”

Unhandled Exception:

System.ArgumentException: Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type.

at System.Reflection.RuntimeMethodInfo.CreateDelegateInternal(Type delegateType, Object firstArgument, DelegateBindingFlags bindingFlags, StackCrawlMark& stackMark)

Hi @Srinu3366 and sorry for the late reply. It seems your issue is similar to Azure DevOps: “Prepare analysis” task crashes on Linux agent , and it should have been fixed