UE5.1 VS2022 C++ Build Error With MSB3073

hello, Yes it works as an editor but when I try to build a Windows application as a server I get the error again, I mean I need it to work from VS 2022 as a development server, do you know any way to achieve this?