Does using MediaLibrary class pose portability problems?

别等时光非礼了梦想. 提交于 2019-12-12 03:42:19

问题


In my Windows Phone project for SDK 7.1 (maybe I need to update it to use WP8 later) I want to add a test image into Windows Phone Emulator using this code. The latter uses MediaLibrary class and so I have to add a reference to Microsoft.Xna.Framework. No other code in my project needs that assembly.

I've found this MSDN document that says You can use certain XNA Framework assemblies in apps that target Windows Phone OS 8.0. and the list includes Microsoft.Xna.Framework.dll. So looks like I should not expect any problems but I'm not completely sure.

Will using MediaLibrary class and so having a reference to Microsoft.Xna.Framework cause any issues with portability of my code and its distribution?


回答1:


No you can safely use MediaLibrary and other permitted Xna assemblies in your WP8 projects. In fact, The Rich media extensibility which adds certain extension methods to some classes in the Xna framework are exclusively available for WP8 only.



来源:https://stackoverflow.com/questions/16669010/does-using-medialibrary-class-pose-portability-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!