SonarQube Visual Studio 2019

The specified files are not analyzed. I am encountering an error. Properties-.>ConfigurationProperties->General->Project Defaults->CommonLnguageRuntimeSupport :No common language runtime support …It is analyzed when selected. but “Common Language Runtime Support (/clr)” is not analysed
I wonder .Net c ++ is not supported? I don’t know or is there another problem?

During to analysis :
17:19:51.203 INFO: Indexing files…
17:19:51.203 INFO: Project configuration:
‘C:\Repos\trunk\sw\FbModel\src\Model\EthernetIP\Catalog\EipCatEdsFile.cpp’ is ignored. It is not located in project basedir ‘C:\Repos\trunk\sw\FbModel\build’.
17:19:51.238 WARN: File ‘C:\Repos\trunk\sw\FbModel\src\Model\EthernetIP\Catalog\EipCatEdsFile.h’ is ignored. It is not located in project basedir ‘C:\Repos\trunk\sw\FbModel\build’.
17:19:51.249 WARN: File ‘C:\Repos\trunk\sw\FbModel\src\Model\EthernetIP\Catalog\EipCatElement.h’ is ignored. It is not located in project basedir ‘C:\Repos\trunk\sw\FbModel\build’.

17:19:51.263 INFO: 0 files indexed
After the analysis displayed sonarqube :

The main branch has no lines of code.

Sonar.scanner version:sonar-scanner-4.0.0.1744-windows
sonars -scanner bat file directories: C:\Repos\trunk\sw\FbModel\build
sources and header c++ files directories:C:\Repos\trunk\sw\FbModel\src
This is my sonar.bat file.

Hello @moksan,

C++/CLI (enabled by /clr) is not a supported dialect.

Very often, you can organize a program into a pure C++ part (which can be analyzed) and a very thin C++/CLI communication layer with the .NET world (which has the /clr flag and cannot be analyzed).

Hope this helps!

1 Like