How to use Ngen.exe in WPF Application?

2.6k Views Asked by At

I want to increase start-up performance of WPF pages because it takes more time to load. Is Ngen.exe improve the performance or not and how could I use it in WPF Application

2

There are 2 best solutions below

4
On

You can just run NGen on it, but it might not help you as much as you think. If it doesn't, you can always implement a splash screen to make your application seem quicker than it really is.

0
On

You didn't mentioned any problem related to create image of WPF app. So looks like that just need manual. Please, check it - Ngen.exe (Native Image Generator).

Moreover I think that you need to check architecture of your app. Move some action to lazy loading or implement cache on server if you use server.

If you need more detailed answer - add more details to description of your issue.