[英]Visual Studio 2013 windows phone project templates doubts
I have updated my code to WP 8.1 and wanted to organise it better by using Class Libraries. 我已经将代码更新为WP 8.1,并希望通过使用类库更好地进行组织。
The doubt comes when I find there are 2 Class library project templates for Windows Phone: 当我发现Windows Phone有2个类库项目模板时,就会出现疑问:
If i select template 1, i see the assemblies referenced by default are .NET for Windows Store Apps and Windows Phone 8.1 如果我选择模板1,则看到默认引用的程序集是Windows Store Apps和Windows Phone 8.1的.NET。
If i select template 2, i got asked the target version of the Windows Phone OS (8.0 or 8.1) and the assemblies references by default are .NET for Windows Phone and Windows Phone. 如果选择模板2,则会询问Windows Phone OS的目标版本(8.0或8.1),并且默认情况下,程序集引用是Windows Phone和Windows Phone的.NET。
Do you know the differences between them? 您知道它们之间的区别吗? I have looked into the matter and seems it depends if you want to load the .NET runtime namespaces or not, am i correct? 我已经调查了这件事,似乎这取决于您是否要加载.NET运行时名称空间,对吗? Are there any more differences? 还有其他区别吗?
The class library type will depend on whether your main app will be a Windows Phone 8.1 Silverlight app, or Windows Phone 8.1 XAML app. 类库的类型取决于您的主应用程序是Windows Phone 8.1 Silverlight应用程序还是Windows Phone 8.1 XAML应用程序。
The advantage of WP8.1 XAML app is that it is converged with Windows 8.1 - you can even create an Universal App that shares almost all code and xaml between the Win8 and WP8.1 apps. WP8.1 XAML应用程序的优势在于它与Windows 8.1融合-您甚至可以创建一个通用应用程序,该应用程序在Win8和WP8.1应用程序之间共享几乎所有代码和xaml。
The advantage of WP8.1 Silverlight app is that it is more closer to the old WP8.0 app - less changes are required, and also it has access to some APIs not available to WP8.1 XAML apps. WP8.1 Silverlight应用程序的优点是,它更接近于旧的WP8.0应用程序-需要的更改更少,并且可以访问WP8.1 XAML应用程序不可用的一些API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.