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)