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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -