How to build c++ with unreal editor open?

hello when i build in visual studio 2022 it gives me this error:
3>UnrealBuildTool : error : Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game

i tried pressing ctrl alt f11 like it said but then i got this error
ERROR: Unable to patch action graph - unexpected executable in compile action (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe)

its just annoying to have to reopen the project and wait every time i make a little change, does anyone know how to fix??

What if you disable live coding?
image

1 Like

You should close the editor everytime you compile in Visual Studio. The live coding / hot reload feature is experimental and causes corruption. No clue why UE still has it.

1 Like

I’m using VSCode and recompile in the engine. Sometimes you do have to reload, but in most cases you don’t. You can try VSCode if you want.