为什么 UWP 10 开发这么慢? [英] Why is UWP 10 development so slow?

查看:20
本文介绍了为什么 UWP 10 开发这么慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有其他人在 VS 2015 为通用 Windows 平台 10 编写应用程序时遇到非常缓慢的开发体验问题?与使用类似的基本 WPF 应用程序相比,编译、调试甚至在窗口之间切换都非常缓慢.

Does anyone else there have any issues with a very sluggish development experience in VS 2015 writing apps for the Universal Windows Platform 10? Compiling, debugging, even switching between windows is painfully slow compared to working with a similar, basic WPF application.

我无法在 Google 上找到任何提及此体验的内容,这让我怀疑我的设置中是否有什么东西在向 UWP 开发人员投掷一把扳手.

I have not been able to find any mention of this experience on Google, which leads me to wonder if there's something in my setup that is throwing a monkey wrench into UWP dev.

有没有人遇到过这种情况,或者知道任何加快开发速度的方法?

Has anyone experienced this, or know of any ways to speed up development?

更新

这个问题的上下文是在调试模式下编译,而不是在 RELEASE (.NET native) 模式下编译.

The context of this question is compiling in DEBUG mode, not RELEASE (.NET native) mode.

推荐答案

2016 年 10 月更新

Visual Studio 2015 Update 3 开始,此答案不再相关.Microsoft 在将开发环境恢复到稳定状态方面做得非常出色.虽然我目前在 XAML 设计器、编码和代码方面存在问题.建筑更快,更有趣.我希望在下一个 Visual Studio 15 中解决在 XAML 设计器中发现的大部分问题.

This answer is no longer relevant, as of Visual Studio 2015 Update 3. Microsoft have done a great job bringing the development environment back to a stable state. Although I currently have issues with the XAML designer, coding & building is much faster and more enjoyable. I hope most of the debilitating issues found in the XAML designer are resolved in the next Visual Studio 15.

有没有人遇到过这种情况

Has anyone experienced this

是的.

我团队中的每个人都因为 UWP 脱发.我几乎确信微软想让我讨厌 C# &XAML.

Everyone on my team is losing hair because of UWP. I'm almost convinced that Microsoft wants me to hate C# & XAML.

...或者知道有什么方法可以加快开发速度?

...or know of any ways to speed up development?

我正在将我的应用程序移植到 UWP,但我无法终止对 Win8 的支持.所以,我在同一个解决方案中有两个项目.对我来说,为了加快速度,我将构建配置修改为Debug-UWP"和Release-UWP",以在我使用 Windows 10 应用程序时排除 Win8 应用程序和项目.这只是一个小小的缓解.构建仍然是一种痛苦的经历.

I'm porting my app to UWP but I can't end support for Win8. So, I have both projects in the same solution. For me, to speed things up, I modified the build configurations to "Debug-UWP" and "Release-UWP" to exclude the Win8 application and projects when I'm working with the Windows 10 app. This is only a minor relief. Building is still a painful experience.

还有

您可以禁止 NuGet 在每次构建时恢复包.转到选项 > NuGet 包管理器 并取消选中在 Visual Studio 中构建期间自动检查丢失的包".这也是次要的,但每一点都有帮助.

You can disable NuGet from restoring packages on every build. Go to Options > NuGet Package Manager and uncheck "Automatically check for missing packages during build in Visual Studio." This is also minor, but every little bit helps.

这篇关于为什么 UWP 10 开发这么慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆