UWP Build非常慢(VS 2015) [英] UWP Build is extremely slow (VS 2015)

查看:204
本文介绍了UWP Build非常慢(VS 2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需升级到Windows 10和VS2015.

在具有一些nuget引用的基本UWP应用上,构建过程耗时将近1分钟.  生成本机代码"

Just upgraded to Windows 10 and VS 2015.

On a basic UWP app with some nuget references the building process takes almost 1 minute. It stays mostly at "1>  Generating native code"

然后创建商店包裹需要花费更长的时间,大约需要5分钟.

Then to create store packages it takes even longer, about 5 minutes.

致谢

推荐答案

嗨Jandieg,

Hi Jandieg,

我认为您描述的行为是由以下两件事引起的:

I think the behavior you described is caused by following two things:

1,通过UWP导入的.NET Native,请参阅此博客以了解更多信息:

1, .NET Native imported in UWP, see this blog for more information: https://blogs.windows.com/buildingapps/2015/08/20/net-native-what-it-means-for-universal-windows-platform-uwp-developers/

通常,.net本机将在从Visual Studio构建应用程序时执行额外的步骤,这是将托管的IL二进制文件编译成本机二进制文件,.NET本机编译是一个复杂的过程,这会使它变慢一些与 .NET经典编译.

In general, the .net native will do extra step while building the app from Visual Studio, which is to compile your managed IL binaries into native binaries, .NET Native compilation is a complex process, and that makes it a little slower when compared to classic .NET compilation.

2,您的计算机环境,比如说Visual Studio需要在编译时做更多的计算,如果硬件不够好,那肯定会很慢,而当我运行Visual Studio在4G内存上启动仿真器时机器,它将 需要2分钟,但是在另一台16G测试机上启动确实非常快.

2, Your machine environment, let's say when Visual Studio need do more calculation on the compiling, which will definitely be slow if the hardware is not that good enough, when I run the Visual Studio to start a emulator on my 4G memory machine, it will take 2mins, but it would be really fast to start on another 16G test machine.

-詹姆斯


这篇关于UWP Build非常慢(VS 2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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