问题
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