Following modules are missing or built with a different engine version: Main project module

Okay, so I’m sure questions with similar titles get posted here all the time…
I’ve had to solve similar issues probably 100 times before, but this is a new one.

Our C++ project was built on 5.4, but we updated to 5.5 successfully. Everything working fine, and we’ve been working on it for like a month since or something. (Not sure if the upgrade is relevant, but mentioning it here in case it is)
I haven’t touched C++ in a while, and was about to make a new class, when I realized the editor is missing the Visual Studio related buttons in the file menu.

I started looking into it and found some forums mentioning some people had this issue and that the buttons re-appeared after recompiling the project and/or the engine. I decided to delete a bunch of stuff to get a clean refresh on the VS solution. I deleted Binaries, Intermediate, Saved, .vs and the solution. I then generated the VS files again, opened the solution and built everything. The build was successful. I then tried opening the project in UE, and got the message: “Following modules are missing or built with a different engine version: [the main project module]”.

So what gives? I can build the project from VS successfully, yet I still can’t open the project, and it just tells me to go compile it from source again.

Help? :frowning:

Okay, I’m fairly sure the issue was the contents of the .uproject file.

Now, I don’t know how this ended up like this, or why this broke it, but here are the only differences in the files:

Working file:

  • Has smaller indents
  • Is missing the following lines at the end, that the broken file had:
"AdditionalRootDirectories": [],
"AdditionalPluginDirectories": [],
"EpicSampleNameHash": ""
  • Has an additional property specifically for OpenXR plugins, that the broken file didn’t:
"SupportedTargetPlatforms": [
	"Win64",
	"Linux",
	"Android"
]

Make of that what you will.

I guess I’ll mark this as the solution, though this is unlikely to be helpful to anyone searching for this particular question in the future, beyond pointing out: “maybe your uproject file is weird?”.