.NET 4.0 WPF应用程序启动非常慢(x86,Windows 7) [英] .NET 4.0 WPF Application Startup Very Slow (x86, Windows 7)

查看:547
本文介绍了.NET 4.0 WPF应用程序启动非常慢(x86,Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我最近开始研究WPF作为应用程序的替代UI技术.我面临的问题是,我为.NET 4(完整或客户端配置文件)构建的所有WPF应用程序都需要花一些时间才能启动.我们说的像一两分钟,太长了.这个 即使在使用Visual Studio 2010中的新建项目"对话框创建的空白应用程序中也会发生这种情况.

I Recently started investigating WPF as a replacement UI tech for an application. The problem I face is that ALL WPF applications I build for .NET 4 (full or client profile) take ages to start. We're talking like a minute or two, which is far too long. this occurs even in blank applications created using the New Project dialog in Visual Studio 2010.

我发布了这个问题,因为我看到很多关于解决x64系统问题的帖子,但是我们的问题是x86,问题就在那里.所以我问有人知道解决办法吗?

I post this question as I have seen lots of posts about fixing the issue for x64 systems, but ours are x86 and the problem is there. So I ask does anyone know of a fix?

综合起来,我尝试为.NET 3.5进行构建,并且该应用程序立即启动,但是我需要将.NET 4作为以前的版本,并且许多组件都在.NET 4中进行了构建. .NET 4应用每次启动缓慢. WinForms 和控制台应用程序也不会受到影响.

To mix things up I tried building for .NET 3.5 and the app starts instantly but I require .NET 4 as the previous version and many components are built in .NET 4. This is also not a cold/warm boot issue as the .NET 4 app starts slowly every time. WinForms and console apps also do not suffer.

任何建议都将不胜感激.谢谢.

Any advice is greatly appreciated. Thanks.

推荐答案

Hi Glacial,

Hi Glacial,

如果仅在您的计算机上发生此问题,我认为很难找到问题的根本原因,并且如果您更新系统,则有很多因素可能会引起此问题,请您分享给我更多信息,另外,也许这个博客可以 对您有很大帮助:

If this issue only occurs on your computer, I think it is hard to find the root cause of your issue, and if you update your system, there are lots of factors could casue this issue, could you share me more information, additional, maybe this blog could help you a lot:

http://kiefermat.com/2009/04/14/wpf-startup-performance/

 

最好的问候


这篇关于.NET 4.0 WPF应用程序启动非常慢(x86,Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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