SonarScanner MSBuild error scanning VB web site project

Hi Sonar Community,

I’m using:

  • SonarQube installed on Linux server as a docker container, version Community Edition v10.5.1 (90531)
  • SonnarScanner installed on Windows Server 2016, version 7.0.0.95646-net-framework
  • Gitlab runner installed on Windows Server 2016 on the same server as SonarScanner

I encountered an issue while running a scan for VB website apps via GitLab CI. Here are the full logs:
sonnarscannerMsbuild_error.log (15.4 KB)

What I’m trying to achieve is for SonarScanner to scan my apps and deploy the report to the SonarQube server.

I’ve tried to:

  • change sonarscanner msbuild from sonar-scanner-msbuild-5.4.0.40033-net46 to sonar-scanner-7.0.0.95646-net-framework

Explanation of variables that may be helpful from the logs:

  • $SONAR_MSBUILD_NETFRAMEWORK = C:\Sonarscanner\sonar-scanner-7.0.0.95646-net-framework\SonarScanner.MSBuild.exe
  • $MSBUILD_PATH = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe

Can anyone help me with what I can do to get this running?

Hey there.

Based on the presence of aspnet_compiler.exe in your logs and the lack of a .csproj file, this is probably a Legacy Web Site project that is not supported. You can find a longer discussion of this here:

1 Like

Ohh I see now, I’ll ask the developer for further information related to the project.

Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.