MonoGame 3.5.1有一个bug。明明已经using了Microsoft.Xna.Framework.Media还是会提示:The type or namespace name ‘XXXX’ does not exist in the namespace ‘MediaPlayer’ (are you missing an assembly reference?)

解决办法有两种

1.写全名称空间namespace:MediaPlayer该写成Microsoft.Xna.Framework.Media.MediaPlayer
2.将using Microsoft.Xna.Framework.Media 放在

 



如果您对C#游戏开发感兴趣,可以扫下面二维码加入我们的QQ群来一起学习交流

原创文章,转载请注明本文链接地址(违者必究):MonoGame 无法找到namespace MediaPlayer 丢失程序集引用