Visual C++ for Linux development

Hello

I have SonarQube Enterprise (10.1.0) on premise.
I’m using Azure DevOps 2022 on premise.
I have a C++ project which compiles under Linux (Vcxproj) using the Visual studio “Linux and embedded development for C++” workload.

Since the project starts compilation from a windows machine and connects to a Linux machine is it possible to scan it using Sonarqube?

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

10.1 → 2025.1.2-> 2025.3 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, it’s not clear to me what you mean by “connects to a Linux machine”. Analysis should run where the compilation database is created because the pathing is very important. Presumably you could run analysis (after you upgrade :face_blowing_a_kiss:) on the Windows machine.

 
HTH,
Ann

I’m using a very “special” type of cpp project in visual studio which opens a SSH connection to a Linux machine compiles there and returns the compilation result
here is a link on this: Linux development with C++ in Visual Studio - C++ Team Blog

Hi,

Your best bet is to run the analysis on that Linux machine.

 
HTH,
Ann