Startup crash with the published windows build

Hi There,

With Monogame 3.8.4.1 on .Net 8, when I publish my app to a folder, with any kind of combination I tried so far, it crashes immediately at the startup when I try to run the exe with this error :

System.NullReferenceException: Object reference not set to an instance of an object.
   at MonoGame.Framework.WinFormsGameWindow.OnDeactivate(Object sender, EventArgs eventArgs)
   at System.Windows.Forms.Form.WmActivate(Message& m)
   at Microsoft.Xna.Framework.Windows.WinFormsGameForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

I can make debug and/or release builds in Visual Studio 2022 and they work fine whether inside Visual Studio or if I try to run the exe from file explorer. Anybody know what might be wrong?

Thanks,

Ă–zden