V053. Failed to load .NET built-in types for a project.
The V053 message indicates that PVS-Studio C# analyzer was unable to load the built-in .NET types, such as System.Object, System.String, System.Int32, and so on. As a result, proper analysis cannot be performed and the project will not be analyzed.
In most cases, V053 occurs because the project was not built or the build did not complete successfully. To resolve this issue, build the project that triggers V053 before running the analysis.
There are other cases in which an error may occur:
- If a solution (
.sln) applies aglobal.jsonfile during the solution build,global.jsonmay not always be detected during analysis (even if the build succeeds). To ensure thatglobal.jsonis applied during analysis, place this file in one of the parent directories for all projects (csproj) in the solution.
If the V053 error persists, please let us know via the feedback form.
For troubleshooting, provide information about compilation errors and build logs (which contain information about the project build). To obtain this information, run the analysis of the problematic project from the command line. In addition to the required arguments for the analyzer, provide the --logCompilerErrors and --createBinaryLogs arguments. After the analysis completes, the console will display the locations of the compilation error logs and binary logs.