I’m a bit confused. Since I upgraded to the latest version of Monogame 3.7.1 and Visual Studio 2019, I cannot run my project any more.
When attempting to load a font sprite, I get an internal error of the load function.
So, I’m still very unclear on why this is happening.
Could it be that I have an improper reference to a dependency ?
I had to install XNA separately as it is not included in Visual Studio 2019, I wonder if this could be related too.
I followed this site: http://flatredball.com/visual-studio-2019-xna-setup/
ContentTypeReader is supposed to be here
Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Which is indeed included in my project.
Note also that my problem happens also for Texture2D too loading.
I tried skipping the Font loading part and a similar error happened for the textures.
Well, after quite some wandering, the problem was indeed easy to solve in the end.
I had installed both XNA for visual studio 2019 (external installer) and Monogame 3.7.1 (external installer).
And referenced all this in my project.
Though, I also found the Nuget package of Monogame and installed also installed it, the same way it was in my previous Visual Studio 2015.
It gave a conflict between Microsoft.XNA.Framework (which I thought was needed) and MonoGame.Framework.
Removing Microsoft.XNA.Framework from my references allowed my project to be rebuilt properly.