在Windows Phone 8.1中,Windows phone项目和silverlight项目之间的区别是什么?

我开始使用windows phone 8.1 SDK但是有些奇怪的东西我不明白,其中一个复杂的事情为什么有不同的框架Silverlight和默认的xaml,它们之间有什么区别,当我使用这个或者这个?

一个巨大的区别当然是Store Apps支持通用应用程序 ,您可以轻松地在WP8.1和Windows 8.1(包括XAML)中共享几乎所有代码。

但值得注意的是,某些应用可能需要的function仅适用于WP8.1 Silverlight应用,例如:

  • VoIP支持
  • 充当锁屏背景提供商
  • 充当镜头应用程序
  • 让app使用搜索附加function扩展搜索结果
  • 提供铃声

此处列出的其他一些以及从WP8到WP8.1 Silverlight和Store Apps的function映射: http : //msdn.microsoft.com/en-us/library/windowsphone/develop/dn642486( v=vs.105 )的.aspx

如果您正在开始一个新的应用程序,并且不需要任何这些function,那么Store应用程序可能是更好的选择。

如果我理解你的问题,那么让我从MSDN中提出一些句子……

why there are different frameworks Silverlight and the default xaml, also what is the difference between them and when i use this or this ? 

在Visual Studio 2013中,Microsoft提出了一种方法,您可以在其中同时构建适用于手机的应用程序以及桌面和选项卡。 通用应用程序的独特概念。

  Build an app for Windows 8.1 and Windows Phone 8.1 at the same time, and share code, user controls, styles, strings and other assets between them 

因此,如果您要开发针对该平台的应用程序,那么通用应用程序概念就是好的。

但是,如果您只定位Windows Phone 8.1的新function,那么您应该从Silverlight "Blank App (Windows Phone Silverlight)"

正如在MSDN中明确提到的那样。

  The names of some templates have (Windows Phone Silverlight) appended to the end. Consider using these templates if you've previously developed for Windows Phone 8 and just want to access some of the new features available to Windows Phone apps without having to significantly modify your existing code. You can use these templates to create apps only for Windows Phone 8.1 

更多细节MSDN Link

Windows Phone Silverlight是Windows Phone 8部署,显然WP 8.1是WP 8.1的部署

主要区别在于WP 8.1可以使用跨平台DLL,因为WP 8不能。 还有许多其他框架差异,但这是一个巨大的差异。