简体   繁体   English

Windows 10平板电脑上的Windows phone 8.1 Silverlight应用程序

[英]Windows phone 8.1 Silverlight app on windows 10 tablet

I have a Windows phone 8.1 Silverlight application. 我有一个Windows Phone 8.1 Silverlight应用程序。

Now I need to make it run also on windows 10 phones and tablets. 现在我需要让它在Windows 10手机和平板电脑上运行。 I checked and the app is available on windows 10 phones, even if deployed for windows 8.1 but it seems like I can't install it on windows 10 tablets. 我检查了应用程序在Windows 10手机上可用,即使部署为Windows 8.1但似乎我无法在Windows 10平板电脑上安装它。

My question is pretty simple: 我的问题很简单:

  • Is there a "fast way" for converting the 8.1 project to UWP? 将8.1项目转换为UWP有“快捷方式”吗?
  • Can I deploy my app for tablets without re-writing all the code? 我是否可以在不重写所有代码的情况下为平板电脑部署应用程序?

Thanks all 谢谢大家

This question is oddly similar to one that I answered just yesterday. 这个问题与昨天我回答的问题奇怪地类似。 It's not really a duplicate so I will restate the answer here along with a link to the other question (1) 这不是真的重复,所以我将重申这里的答案以及另一个问题的链接(1)

Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. 遗憾的是,没有简单且完全自动化的方式将Silverlight应用程序移植到UWP,主要是因为API占用空间已在两个平台之间进行了更改和更新。 There are a lot of similarities but also a lot of breaking changes that require some manual changes. 有很多相似之处,但也有许多需要手动更改的重大变化。

here is Microsoft's guidance for this particular upgrade path. 是Microsoft对此特定升级路径的指导。

From the article above: 从上面的文章:

Note This guide is designed to help you port your Windows Phone Silverlight app to Windows 10 manually. 注意本指南旨在帮助您手动将Windows Phone Silverlight应用程序移植到Windows 10。 In addition to using the information in this guide to port your app, you can try the developer preview of Mobilize.NET's Silverlight Bridge to help automate the porting process. 除了使用本指南中的信息移植应用程序之外,您还可以尝试使用Mobilize.NET的Silverlight Bridge的开发人员预览来帮助自动化移植过程。 This tool analyzes your app's source code and converts references to Windows Phone Silverlight controls and APIs to their UWP counterparts. 此工具分析您的应用程序的源代码,并将对Windows Phone Silverlight控件和API的引用转换为其UWP对应项。 Because this tool is still in developer preview, it does not yet handle all conversion scenarios. 由于此工具仍在开发人员预览中,因此尚未处理所有转换方案。 However, most developers should be able to save some time and effort by starting with this tool. 但是,大多数开发人员应该能够从这个工具开始节省一些时间和精力。 To try the developer preview, visit Mobilize.NET's website . 要尝试开发人员预览,请访问Mobilize.NET的网站

[1] Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app? [1] 可以将Silverlight浏览器外应用程序转换为通用Windows平台(UWP)应用程序吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM