Ue5 vs 2022 compile fail

Unreal Engine project can´t get compiled in VS 2022. I can compile in ue5 but if i press on compile in vs it says 2 succeeded but allways. so when i make some errors it still say 2 succeeded or 2 skipped if i dont use build → configuration managaer → apply hook on project. i removed some appdata folders and there could be the issue but im not sure…