Hi! I was able to reproduce this issue and managed to fix it. UE5 uses /sourceDependencies compiler option that produces these .cpp.json files.
The problem is in the latest MSVC compiler (14.32.31326: MSVC v143 - VS 2022 C++ v14.32-17.2). Starting from this compiler version, the “Version” field in the files produced is equals to 1.2.
As a temporary solution, I suggest downgrading the compiler to any lesser version. I have validated the following versions and confirm they are fine to use.
14.29.30133: MSVC v142 - VS 2019 C++ v14.29-16.11
14.30.30705: MSVC v143 - VS 2022 C++ v14.30-17.0
14.31.31103: MSVC v143 - VS 2022 C++ v14.31-17.1
You can set the compiler version via BuildConfiguration.xml in a way like
<?xml version="1.0" encoding="utf-8" ?><Configuration xmlns=“https://www.unrealengine.com/BuildConfiguration”>
<WindowsPlatform>
<Compiler>VisualStudio2022</Compiler>
<CompilerVersion>14.31.31103</CompilerVersion>
</WindowsPlatform>
</Configuration>
Note: You would need to Clean and Rebuild your project via IDE or manually (delete {project}/Intermediate and {project}/Plugins/{anyplugin}/Intermediate.