Compiling errors with live coding on or off.

I’m just starting with UE5 and right off the bat I have an issue with compiling. I use Visual Studio 2022 and when I open a c++ class from within UE5 it can’t compile. At first the error is that Live Coding is on. I tried to get it to compile with Live Coding on but no luck. When I turn off Live Coding I het the Link error where the file isn’t accessible.

Any fixes?

I found a work-around. Not sure if this is intentional. Compiling in Visual Studio doesn’t work. Either it says I need to stop the Live Code and when I’ve done that I get the Link1140 error that it can’t access the file.

I switched off the Live Code and now compile from within UE5 and it works.