将Windows 8 Metro App移植到Windows 8手机应用程序识别未实现的API [英] Porting Windows 8 Metro App to Windows 8 phone App- identify API that are not implemented
问题描述
我将Windows 8 Metro应用程序移植到Windows 8 Phone应用程序。当Win 8手机应用程序编译时,有许多API在运行时抛出API未实现的异常。
I am porting a Windows 8 Metro application to a Windows 8 Phone app. While the Win 8 phone app compiles, there are many API's which throw the API not implemented exception at runtime.
有没有办法识别所有的API在现有的源中没有实现?
Is there a way to identify all the API's that are not implemented in an existing source?
我能想到的唯一方法是识别我的应用程序中使用的所有API,然后检查是否有API支持与否。
The only way I can think of doing is to identify all API's being used in my app and then check if that API is supported or not.
谢谢,Avinash
Thanks, Avinash
推荐答案
这个基本上与此处描述的过程相反:
This is essentially the opposite of the process described here:
使用XAML将Windows Phone 7应用程序迁移到Windows应用商店应用
以上使用WP7 Silverlight作为基础; WP8类似。
The above uses WP7 Silverlight as the basis; WP8 is similar.
下面的图表可能很有用,因为它包含标识主要API对齐的图例,但没有深入查看有关API差异的详细信息。为此,您需要在MSDN中查找实际的API。
The following chart may be useful as it contains a Legend identifying major API alignment, but doesn't drill down to the details regarding API differences. For that you'll need to look up the actual API in MSDN.
另请参阅第19章(跨平台开发) 在
Windows Phone 8快速入门培训。
See also Chapter 19 (Cross Platform Development) in the QuickStart training for Windows Phone 8.
希望这个帮助,
马克
Hope this helps,
Mark
这篇关于将Windows 8 Metro App移植到Windows 8手机应用程序识别未实现的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!