为了让MonoGame编写的代码能跨平台编译运行要注意资源文件(Content目录中文件)的命名,错误的命名会出现意想不到,甚至莫名其妙的错误。比如名字带了特殊字符“+”号就会导致在iOS平台出现The “CollectBundleResources” task failed unexpectedly.错误。在windows平台却没有问题。

Severity	Code	Description	Project	File	Line	Suppression State
Error		The "CollectBundleResources" task failed unexpectedly.
Xamarin.Messaging.Exceptions.MessagingException: An error occured on client build6880xxxxx while executing a post for topic xvs/Build/4.0.3.214/copy-item/StormFlight/c6beb50/score_+_0001.xnb ---> Xamarin.Messaging.Exceptions.MessagingException: There was an error while trying to subscribe to response topic xvs/Build/4.0.3.214/copy-item/StormFlight/c6beb50/score_+_0001.xnb --->



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

打赏作者
很喜欢这篇文章,打赏犒劳下作者,以此激励作者创作更多

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏