Visual Studio project no longer works - Can't find VS build tools

Old project in UE427 was using VS 2019 with the latest 142 Build Tools

I ported the project to UE 5.0.3 with no issues initially. Just had to change some #include paths for the geometry processing plugin and everything else compiled perfectly even the blueprints.

I have live coding on, went to compile a change from visual studio (not compile button in editor) and I got the “can’t be compiled while editor is running message” which is fine. Closed the editor to compile from visual studio directly and got a slew of issues that had to do with ShadowPCH.

So after failing to track it down I decided to just clean compile the project. I removed Binaries&Intermediate&Saved&Build then I regenerated VS project files, that worked. Upon opening the the solution in VS it couldn’t find the target for the project, it could for the engine. It claims it can’t find build tools for V142.

So I checked VS installer and the build tools for 142 are installed. Tried downloading and opening with VS2022, but when I open with that it claims it cant find V143! I don’t know how to fix this issue. Any Suggestions?

Note: I can start a UE5 C++ project from scratch using VS 2019 or 2022 just fine

I had something similar in the past I’m not sure if this related to it but just to make sure check your .target files and your .build file in source these are C# files, make sure they exist and that they contain valid info, you might wanna copy from a new project if needed.

3 Likes

I somehow deleted .Target in project source. Good eye pal.

1 Like

Glad I could help.

1 Like