c# - Visual Studio 2015 MonoGame: Cannot find Texture2DReader -
this line of code
backgroundimage = content.load<texture2d>("backgrounds/titlescreen");
causes error
an unhandled exception of type 'microsoft.xna.framework.content.contentloadexception' occurred in microsoft.xna.framework.dll additional information: error loading "backgrounds\titlescreen". cannot find contenttypereader microsoft.xna.framework.content.texture2dreader.
this code working before tried convert visual studio 2010 2015. inside content folder backgrounds folder has titlescreen.png, know path correct.
please try .xnb files in bin\content folder. double check path of texture , name of file(i mean case sensitive). when deployed in xna visual studio,it working fine..when deployed in monogame,it throwing error,i trying file name screen,where filename screen. safest try using xnb files.
Comments
Post a Comment