为了让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 --->