Unreal Engine C++ Module Rebuild Issue

Hi. I have the following problem, when I add a C++ class to a template, then after restarting the engine, I am prompted to Rebuild module [Name of my project]. When I click “Yes” the rebuild does not happen and I get a message that I should do it manually. When I open the project solution in Visual Studio, in the Configuration Manager where my project is I select “Development”, click OK, when I start building the project I get the following error: “D8037”, I tried to rebuild the solution through “build > run build insights on solution > rebuild” and supposedly there are no errors, but when I try to start the project again the rebuild window appears and when I click “Yes” it sends me to manual rebuild again. VS is installed on the same disk as the engine itself. All the solutions to a problem similar to mine, which were posted on this forum, did not help in my situation. I even created an empty project and created a C++ class in it and I get the same problem. Deleting VS folders in my proj and Generate VS Project Files does not help either .Engine version 4.27.2.

How to fix it?

Before knowing the existence of the “Generate VS Project Files” option, I found another way myself that does something similar, and can fix the issue when the former doesn’t work.

First, backup your project!! You can then safely delete the .vs folder, Source folder and the .sln file. Now you should be able to open your .uproject file. Inside the editor, create a new C++ class (also make it public for convenience), close the editor, navigate to the newly generated Source folder, then into the folder with your project name under the Source folder, and replace the Public & Private folders there with the original ones.

And that’s it! Now you shouldn’t encounter any issues when building your project via Visual Studio :blush:

Hope this helps!

That’s not gonna work for me. I have such an error after creating a class with rebuild.The fact that I replace the folders will not change anything. I installed Visual Studio 2019 now, and when building a project, I get this error: “1>cl : command line error D8037: could not create a temporary IL file; clear the temporary directory of old IL files (0:00.09 at +0:15)”

Well… Trying it out will do no harm :cowboy_hat_face:

Hmm… dunno about that error, maybe my suggestion won’t work for you. Still worth a shot though, it usually fixes VS related issues.

No, it didn’t work.

How’s your disk space looking?

D8037 seems to be an error regarding not having enough space to be able to create temporary intermediate files.

Check your drives free space for temp files.

If you have free space then check your page file size in system properties =>Advanced =>[Performance] Settings => Advanced => Virtual Memory => Change (button)