FYI MonoGame is the continuation of XNA and is still used for game development, pretty sure Stardew Valley was made using it.
Very approachable “code only” game engine if you already know C#.
I’ve been playing with it for a hobby game project and so far everything works perfectly on both Mac and Windows which was surprising, didn’t even have to change a build flag or config file just starting debug on Windows or Mac Visual Studio has worked.
Not only that but a random old Logitech controller connected to the Mac worked out of the box with Xbox controller code from Windows.