Getting these CoreNet.h errors , was working fine the previous day. Anyways to solve it?

I’m using UE4 and getting these errors when I open my VS and these errors stop my project from opening too


Hi. I build UE 5.0.3 from source with VS 2022 and created a new empty project and set up my own github repo with github desktop. I pushed the project to git and then I moved my local repo to make the folder structure more clearly arranged. Then I pulled my project from git, generated the project files and I tried to add C++ classes to the project. Then I got the errors as shown above. I tried building the whole solution anyway but it didn’t work. Am I missing any Visual Studio features? Help please

Ok it seems like I fixed the problem by installing the rest of the required components in Visual Studio 2022. At least I can build my game project now without errors. Haven’t tried to rebuild the whole engine because that’s still working for me since the last time I build it with VS2022. I installed the components explained in this video (link includes timecode): How to Setup Visual Studio 2022 for Unreal Engine - YouTube