Indeed, in order to analyze C# code you need to have installed the JRE. It would be difficult to drop that dependency because in its end step Scanner for MSBuild executes Scanner CLI to analyze non-.NET languages and publish results to SonarQube. We could write the publishing code in C#, but If you have an application that also contains JavaScript or TypeScript code, which is very typical for
ASP.NET, you will still need to run Scanner CLI and install JRE. So far we think it is not a big trouble to install JRE even if it does not feel pure in a .NET-only environment.