使用 MediaLibrary 类会带来可移植性问题吗? [英] Does using MediaLibrary class pose portability problems?

查看:29
本文介绍了使用 MediaLibrary 类会带来可移植性问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 SDK 7.1 的 Windows Phone 项目中(也许我需要更新它以在以后使用 WP8)我想使用 此代码.后者使用 MediaLibrary 类,因此我必须添加对 Microsoft.Xna.Framework 的引用.我的项目中没有其他代码需要该程序集.

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.

我发现 这个 MSDN 文档您可以在面向 Windows Phone OS 8.0 的应用程序中使用某些 XNA 框架程序集. 并且列表包括 Microsoft.Xna.Framework.dll.所以看起来我不应该期待任何问题,但我不完全确定.

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.

使用 MediaLibrary 类并因此引用 Microsoft.Xna.Framework 是否会导致我的代码及其分发的可移植性出现任何问题?

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

推荐答案

不,您可以在 WP8 项目中安全地使用 MediaLibrary 和其他允许的 Xna 程序集.事实上,富媒体可扩展性 为Xna 框架中的某些类添加了某些扩展方法,仅适用于WP8.

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.

这篇关于使用 MediaLibrary 类会带来可移植性问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆