On the problem of SonarQube scanning VC projects

When I scan Visual C + + projects under Windows system, there is a problem. The content is displayed as follows:

ACodec.vcxproj(19,3): error MSB4019: The imported project could not be found “ C:\Microsoft.Cpp.Default.props”. Verify that the expression in the import declaration “\Microsoft.Cpp.Default.props” is correct and that the file is located on disk.

The content of ACodec.vcxproj(19,3) is " ”.We use dotnet sonarscanner to scant his project.

Could you kindly provide some advice to solve this error?

Hi @KevinJin,

The mentioned error seems generic and not related to the analysis.
Try to build without the scanner, it should fail with the same error. Once your build is succeeding without the analysis then retry to wrap with our tools.


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