Sonar scanner error for 4.8.0 version

Hi,
Getting a dependency error post installing the sonar scanner 4.8.0 version. With dotnet core 3.1 version and MSBuild 15.0
Unhandled exception. System.IO.FileNotFoundException: could not load file or assembly ‘System.Threading.AccessControl, Version=4.0.5.0, Culture=neutral.
The particular version of the assembly could not be found anywhere.
Can I know how to resolve this issue. Is there any other way that we can ignore this package dependency.

Thank you

Hi @Nambratha_R.V and welcome to the community !

How do you use/run the scanner please ? Is that inside a docker image ?

Is that possible for you to post the full stack of that error ? So then i can have a look at which assembly requires it.

Thanks.

Hi Mikael,
I’m running this from the command prompt using the sonar command
dotnet scanner-path begin , build and the dotnet end analysis commands.

Since this error is part of my project I’m unable to send the entire log at the time.

The error I’ve mentioned before is the main. This error comes up during the begin analysis of the sonar command run

Unhandled exception. System.IO.FileNotFoundException: could not load file or assembly ‘System.Threading.AccessControl, Version=4.0.5.0, Culture=neutral.

Thanks

Where do you run the command ? Inside a docker image ?

Which sdk versions do you have where you run it ?

Thanks.

Running it on Jenkins oss also on the windows server command prompt. Not using docker.
The sdk version is 3.1.102

Is that the only one installed on the machine ?

.net core Sdk 3.0.101 and 2.1.502 has also been installed on the machine