行动起来:转换传统桌面应用程序到UWP 并发布到Windows 应用商店!

 

一个月前微软发布了桌面应用程序转换器(Desktop Application Converter),让我们可以把现有的桌面应用程序(.NET 4.6.1 或 Win32)轻松转换成 通用 Windows 平台 (UWP) 的程序。

这实际上为开发者带来了巨大的机会。目前已经看到许多开发商主动开始这个过程并成功转换,发布到了 Windows 应用商店。 目前有超过3 亿 5000 万的设备正在运行 Windows 10,这种转换为有价值的桌面应用程序提供了前所未有的易于展现和购买的渠道。

不过,在这个过程中,我也注意到有两个常见的问题︰

A. 我成功转换此应用程序,它运行得相当好,但似乎没有办法直接发布到 Windows 商店?

B. 真是太酷了! 但是转换需要下载很大的image (3.5GB+) 和安装特定环境,我还没空尝试。。。。.

当然也有其他的问题,比如一些细节的准备工作,如何添加一些代码来在传统桌面程序里面使用 UWP API,有其它参考链接对此做了详细解释,在这里我主要回答上面两个问题:

关于问题 A,当决定转换并通过Windows应用商店发布自己的桌面应用程序时(不管会不会转换)都可以通过微软官方链接提交请求 (这个表格目前还是英文,但不难理解, 在提交的时候请注明来自国家地区,并附上本文博客链接)︰

https://developer.microsoft.com/en-us/windows/projects/campaigns/desktop-bridge

微软应用咨询团队(包括我在内)将帮助这个过程,包括解决转换中的技术问题,创建一个用来发布应用程序的特定开发者帐户。我们需要在这里特定开发者帐户,是因为转换后的应用程序,需要”runFullTrust”,这就是转换后的程序不能直接将其发布的原因。

关于 B 的问题,我开发创建了”Desktop Bridge Online” 的Azure 服务,它可以帮助开发人员上传和转换的应用程序(写了个调用DAC的 windows 服务) 在线快速 (几个点击和文件名输入)︰

https://bridge10.azurewebsites.net

这项服务可能没有涵盖所有极端复杂的安装转换场景,但会满足大多数转换需求。

结果将是一个 zip 文件包含转换后的Appx程序包、测试证书和 程序包的分析文件。目前的应用程序安装程序文件大小仅限于 500 MB。如果您的安装程序是上面的文件大小,鼓励安装本地转换环境。这里是主要的用户界面︰

clip_image002

转换选项如下所示参数的含义参考 https://msdn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter

clip_image003

希望上面的信息和新的在线工具可以让我们更好地协助需要转换桌面应用程序的开发人员。任何反馈随时让我知道。

从 Windows 应用程序咨询团队更有益的参考:

https://blogs.msdn.microsoft.com/appconsult/2016/10/13/desktop-bridge-the-bridge-between-win32-apps-and-the-universal-windows-platform/

https://blogs.msdn.microsoft.com/appconsult/2016/10/17/desktop-bridge-converting-an-installer/

Thanks!

Freist Li

(77)

Take Action: Convert your Windows Desktop App and bring it to Windows 10 Store

 

One month ago Microsoft released the Desktop App Converter (DAC), which enables you to bring your existing desktop apps written for .NET 4.6.1 or Win32 to the Universal Windows Platform (UWP).

The tool makes the conversion process quite easy and help you determine what minor changes, if any, are required.

We are glad to see many developers proactively start the process and successfully converted their converted desktop apps to the Windows 10 platform and release it to the Windows Store , which is visible by 350+ million devices are running Windows 10 today, and releasing to the Store is a great way to increase the exposure of the apps.

However, we also noticed there are two common questions on the process:

A. I converted this app successfully, it works quite well, but seems no way to directly published to Windows Store?

B. It’s so cool! But the converting requires downloading big image (3.5G+) and setup specific environments, I don’t have time to quickly give a try yet……

There are also other questions related to preparations, how to step further to add some code and make the app use UWP API, this can be explained in some reference links, here I want to give direct ideas on above two questions A & B.

Regarding question A, after you decide to publish your converted App (if converted app doesn’t work, that’s okay) to Windows Store, please submit a request to us through this form link:

https://developer.microsoft.com/en-us/windows/projects/campaigns/desktop-bridge

Our Application Consult team will help you to see if there is any real technical block of the converted app, if the converted app works well as APPX package, then the team will help you create a specific store account to publish the App. We need specific store account here because the converted app requires “runFullTrust” capability, this is the reason you cannot directly publish it.

Regarding question B, I’m glad to let you know that I created “Desktop Bridge Online (beta)” service on Azure recently, which can help developers to upload and convert the App online (internally through a windows service wrapping Desktop App Converter) quickly (several clicks and filename inputs). Here is it:

https://bridge10.azurewebsites.net

This service may not cover all complicated installation converting scenarios, but will be quite help as an alternative option for common scenarios.

The result will be a zip file includes converted files, test certificate, and package analysis file. At the moment the App installer file size is limited to 500MB. If your installer is above the file size, encourage setup the local converting environment. Here is the main UI:

clip_image002

The convert options follow the parameters guide of DAC:

clip_image003

Hopefully the information and new tool can make our developers experience better on the App converting. Any feedback feel free to let me know.

Welcome to UWP world and happy coding!

More Useful References from Windows App Consult Team

https://blogs.msdn.microsoft.com/appconsult/2016/10/13/desktop-bridge-the-bridge-between-win32-apps-and-the-universal-windows-platform/

https://blogs.msdn.microsoft.com/appconsult/2016/10/17/desktop-bridge-converting-an-installer/

 

Thanks

Freist Li

(56)