简体   繁体   English

为Windows 8和10创建单一版本

[英]Creating single build for windows 8 and 10

我们已经开发了适用于Windows 8的winjs Metro应用程序。现在我们根据Windows 10进行了UI更改。代码库是相同的,但是仍然必须为Windows 8和Windows 10创建两个不同的版本。有什么办法只能创建一个构建将在两个OS上均可使用。

Is there any way to create only one build which will work on both the OS. 是否有任何方法只能创建一个在两个操作系统上均可使用的内部版本。

You could create the build for window 8. And it will be upward compatible with window 10. 您可以为窗口8创建构建。它将与窗口10向上兼容。

Now we did the changes in UI accourding to windows 10. 现在我们根据Windows 10对UI进行了更改。

If you want to fit new UI for windows 10, you could detect current runtime environment and use new UI within window 8 project. 如果要为Windows 10安装新的UI,可以检测当前的运行时环境并在window 8项目中使用新的UI。

However, if you realize the feature via windows 10 api, you will not use it within windows 8 project. 但是,如果通过Windows 10 API实现该功能,则不会在Windows 8项目中使用它。 You need to create build for each OS. 您需要为每个操作系统创建构建。

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

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