Thank you Tomasz,
Your suggestion helped me.
I have installed SonarLint 6.4.1.47693 and use it with VS2022.
I added a new variable ClCompilerPath with a value “C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\cl.exe” in the system environment
2 Likes