Windows Phone 8.1 和 Windows Phone Silverlight 8.1 的区别 [英] Difference between Windows Phone 8.1 and Windows Phone Silverlight 8.1

查看:36
本文介绍了Windows Phone 8.1 和 Windows Phone Silverlight 8.1 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读有关 Windows Phone 8.1 开发的文章,因为我已经在使用 Windows Phone 8 并且我打算开始使用新的操作系统版本.

I was reading about Windows Phone 8.1 Development, because I already work with Windows Phone 8 and I intend to start working with the new OS version.

然后我下载了更新 4 的 Visual Studio for Windows,打开了我的一个项目(目标到 WP8)并单击升级到 8.1".

Then I downloaded the Visual Studio for Windows with update 4, opened one project of mine (target to WP8) and clicked to "upgrade to 8.1".

我看到我的解决方案将名称更改为Windows Phone SilverLight 8.1".

I saw that my solution changed the name to "Windows Phone SilverLight 8.1".

然后我尝试创建一个针对 Windows Phone 8.1 的新项目,在 Visual C# 树下看到以下选项(如图所示):

Then I tried to create a new project targeting Windows Phone 8.1, and I saw the following options under Visual C# tree (as shows the image):

  • 通用应用
  • Windows 应用
  • Windows Phone 应用

由于我的目标是为使用 Windows Phone 8.1 的手机设备进行开发,因此我选择了Windows Phone 应用程序".但是我看到这个项目与另一个项目(我从 WP8 升级的那个)有点不同.解决方案上显示的是Windows Phone 8.1",而不是Windows Phone SilverLight 8.1".而且代码也大不相同.

As my goal is to develop for phone devices with Windows Phone 8.1, I chose "Windows Phone Apps". But I saw that this project is kind different from the other (the one that I upgraded from WP8). It appears "Windows Phone 8.1" on the solution instead of "Windows Phone SilverLight 8.1". And codes are also very different.

所以,我对它进行了研究,要了解Windows Phone SilverLight 8.1"和Windows Phone 8.1"之间的区别,请阅读以下帖子:

So, I made a research about it, to understand the difference between "Windows Phone SilverLight 8.1" and "Windows Phone 8.1", read some posts like this:

但我找不到任何让我理解的东西.

but I couldn't find anything that made me understand.

在某个时候,我发现一个答案说Windows Phone 8.1"是用于通用应用程序...但我不同意,如果我想创建一个通用应用程序,我会选择通用应用程序"而不是Windows电话应用程序".

At some point, I found an answer saying that "Windows Phone 8.1" is for Universal Apps... but I disagree, if I wanted to create an Universal App, I would choose the "Universal App" instead of "Windows Phone Apps".

有谁知道这两个项目的具体区别吗?

Does anyone knows exactly the difference between this two projects?

推荐答案

主要区别在于 Windows Phone 8.1 商店应用程序严格使用在 Silverlight 下不可用的 WinRT API.

The main difference is that Windows Phone 8.1 Store Apps strictly use WinRT APIs which are not available under Silverlight.

在您继续阅读之前,这是简短的版本:

Before you read on, this is the short version:

  • Windows Phone 8.1 商店应用代码可在所有 Windows Phone 8.1+Windows 8+ 机器上运行,因为它使用统一的 WinRT API.
  • Windows Phone Silverlight 应用代码可在所有 Windows Phone 7+ 上运行,但并非在所有 Windows 8 机器上运行(ARM 机器不支持所有功能).这就是 Windows 应用商店应用程序使用不同 API (WinRT) 的原因.您可能想查看此链接:http:///msdn.microsoft.com/en-us/library/windows/apps/jj681690%28v=vs.105%29.aspx
  • Windows Phone 8.1 Store App code runs on all Windows Phone 8.1+ and Windows 8+ machines, since it uses the unified WinRT API.
  • Windows Phone Silverlight App code runs on all Windows Phones 7+ but not on all Windows 8 machines (ARM machines do not support all features). That's why Windows Store apps are using different APIs (WinRT). You might want to check out this link: http://msdn.microsoft.com/en-us/library/windows/apps/jj681690%28v=vs.105%29.aspx

Windows Phones 使用的 Silverlight 应用程序最高版本为 8,而适用于 Windows 8(升级版)的应用程序也提供了 WinRT API - 您可能已经注意到 Windows 8 RT 版本的 ARM CPU.

Windows Phones were using Silverlight apps only up to version 8 while apps for Windows 8 (an up) offered the WinRT API as well - you may have noticed the Windows 8 RT versions for ARM CPUs..

所以 - 为了阻止 Silverlight 和 WinRT 无休止的并行性,微软决定统一开发过程.从 Windows Phone 8.1 开始,Windows Phone 还运行 WinRT(我认为更名为 Windows Runtime)应用程序.

So - to stop the endless parallelism of Silverlight and WinRT Microsoft decided to unify the development process. Starting from Windows Phone 8.1, Windows Phone also runs WinRT (rebranded as Windows Runtime, I think) apps.

主要优点是您现在可以轻松地将 Windows Phone 8.1 代码移植到 Windows 8.1 应用程序,反之亦然,因为两者都使用相同的 API.访问文件、存储、网络……在 Windows Phone 和 Windows 应用商店应用中都是一样的.

The main advantage is that you can now easily port Windows Phone 8.1 code to a Windows 8.1 app and vice versa, since both are using the same APIs. Accessing files, storage, networking.. it's all the same across Windows Phone and for Windows Store Apps.

这是通用应用发挥作用的地方.您现在可以轻松创建一个通用项目,其中包含适用于 Windows Phone 8.1 和 Windows 8.1 的共享代码,而无需稍后通过创建新项目来移植您的代码.

This is where Universal Apps come into play. Instead of porting your code later by creating a new project you can now easily create a universal project that contains shared code both for Windows Phone 8.1 and Windows 8.1.

但是,缺点是您的应用程序无法在 Windows Phones 上运行 <8.1.

However, the downside is that your app won't run on Windows Phones < 8.1.

这篇关于Windows Phone 8.1 和 Windows Phone Silverlight 8.1 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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