SharedPCH.Engine.ShadowErrors.h.txt[ERROR]

I am trying to launch a c++ 3rd person project. but it does not compile and hits me with a

The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_5.0EA/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project=“C:/Users/thare/Documents/Unreal Projects/MyProject3/MyProject3.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Win64 using Manual SDK 10.0.18362.0
Creating makefile for MyProject3Editor (no existing makefile)
@progress push 5%
Parsing headers for MyProject3Editor
Running UnrealHeaderTool “C:\Users\thare\Documents\Unreal Projects\MyProject3\MyProject3.uproject” “C:\Users\thare\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\MyProject3Editor\Development\MyProject3Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\thare\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
Reflection code generated for MyProject3Editor in 4.6710357 seconds
@progress pop
Building MyProject3Editor…
Using Visual Studio 2019 14.28.29912 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from MyProject3 unity file: MyProject3.cpp, MyProject3GameModeBase.cpp
Building 9 actions with 16 processes…
@progress ‘Compiling C++ source code…’ 0%
@progress ‘Compiling C++ source code…’ 11%
[1/9] Default.rc2
@progress ‘Compiling C++ source code…’ 22%
[2/9] SharedPCH.Engine.ShadowErrors.cpp
ERROR: Unable to rename C:\Users\thare\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\MyProject3Editor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.txt.tmp to C:\Users\thare\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\MyProject3Editor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.txt

Any help would be appreciated.

You may need to update your .NET SDK, which can be found here: Download .NET Core 3.1 (Linux, macOS, and Windows)

Thank you so much.

Do you think I need to restart my pc or etc? I downloaded and installed v3.1.15 sdk and it is still doing the same exact error.

Are you using something like IncrediBuild, SN/DBS or FastBuild?
I got a similar error with FastBuild, so I deactivated it and I was able to compile, but more slowly… I know FastBuild is experimental, but it would be useful to fix this problem.

1 Like

Here is my solution.

  • Disable Live Coding. [ Editor References\ Enable Live Coding ]
  • Then Open project from Visual Studio and build project.
  • Start Game from Visual Studio on development mode.
  • When open Unreal Engine close it.
  • Open YourProject.uproject and Enable Live Code.
  • Press ctrl+alt+f11