Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Exit() Obsolete on Windows Desktop

$
0
0

@Nightmare-Games wrote:

I'm in the process of upgrading my Monogame project to the newest version (3.5).

I've systematically gotten rid of all the insane error messages (so far) except one:

'Microsoft.Xna.Framework.Game.Exit()' is obsolete: 'This platform's policy does not allow programmatically closing.'

It's been pointed out that while this message is normal for some platforms (like Windows Phone), it should still be valid for a Windows desktop program, which is what I'm making.

Does Visual Studio think I'm making something other than a desktop program and why? I have a hypothesis that it could be that I'm referencing the wrong MonoGame.Framework.dll. I tried switching from the one labelled as "Windows" to "WindowsUniversal" and then to "Windows8", but got the following error each time:

A reference to 'MonoGame.Framework' could not be added. The project targets '.NET Framework' while the file reference targets '.NETCore'.

I'm out of ideas.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles