URGENT: Major Bug - Prevents VB.Net Scanning

We recently updated to SonarQube 7.9.4.
Our server must be able to scan both VB and VB.Net projects. However, when the 5.03 version of the scanner is provided the “/d:sonar.language=vbnet” command line parameter that option is now DEPRECATED so every time we attempt to scan a VB.Net project it complains about not being able to determine the “language” for scanning.
We MUST be able to support both languages and there needs to be a way at the time of the Scan to tell the scanner which of the two languages it is using.

This cannot be a server side only setting.
Please let me know how we can rectify this situations.
Thanks
Jaeden “Sifo Dyas” al’Raec Ruiner

Hey there.

Indeed, the long deprecated sonar.language was removed before SonarQube v7.9 LTS.

The issue you now face is probably because the .vb file extension is associated with more than one language.

For a given project, depending on what language they need, you should set sonar.vbnet.file.suffixes and sonar.vb.file.suffixes so that a given file suffix is only present in one.

These can be set as analysis parameters or, more easily, in the project-level Administration > VB.NET (or) Visual Basic > File Suffixes in the UI.

You can set a default for your instance as well (depending on what langauge is more used) by configuring this at the global administration level.