【发布时间】:2015-09-30 06:02:58
【问题描述】:
这行代码
backgroundImage = Content.Load<Texture2D>("Backgrounds/titleScreen");
导致此错误
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.
在我尝试将其从 Visual Studio 2010 转换为 2015 之前,此代码运行良好。在我的 Content 文件夹中是一个 Backgrounds 文件夹,其中包含 titleScreen.png,所以我知道路径是正确的。
【问题讨论】:
-
也许尝试重新安装 MonoGame。
标签: c# visual-studio-2010 xna visual-studio-2015 monogame