为什么此程序中未识别 png 文件?
public class Game1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
Texture2D box;
}
//这部分显示下一个未识别的错误。
protected override void LoadContent()
{
spriteBatch = new SpriteBatch(GraphicsDevice);
box = Content.Load<Texture2D>("next");
}