Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF performance
I would like to know which are all the components, dll's and all other things being used to start a simple WPF application.
Also if there is any way by which we can find out the main reasons for delay in startup of WPF application?
I also want to trace the code for time consumption in my Visual Studio 2010.
Posted 1-Nov-11 18:58pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

DLLs… what DLLs? What to reference in your WPF application? Why this is a problem? If you can use Visual Studio, just create a new project from WPF Application template. It will create a skeleton application for you. Look at all the references (what you find will be about the minimum, but certain references are really not needed, such as System.Deployment and System.Data.*; you can remove references one by one to see which ones are redundant) and files of the project — you will learn what you need.
 
Delay in application startup? I never saw significant delay. Maybe you saw applications doing it wrong. Smile | :) To trace time consumption, use the class System.Diagnostics.Stopwatch, see http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx[^] and the code sample at the end of this MSDN help page.
 
—SA
  Permalink  
v2
Comments
Espen Harlinn at 2-Nov-11 21:02pm
   
Good advice :)
SAKryukov at 2-Nov-11 21:17pm
   
Thank you, Espen.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try this : http://stackoverflow.com/questions/450039/how-to-programmatically-get-dll-dependencies[^]
 
The DependencyReporter code will give you a list of the DLL's used by your application.
  Permalink  
Comments
Espen Harlinn at 2-Nov-11 21:01pm
   
5'ed - even if you didn't reference http://www.codeproject.com/KB/cs/Depends4Net_Part1.aspx
Mehdi Gholam at 3-Nov-11 0:44am
   
I will go and die now!
SAKryukov at 2-Nov-11 21:18pm
   
Yes, a good idea, my 5.
--SA
Mehdi Gholam at 3-Nov-11 0:45am
   
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 440
1 OriginalGriff 194
2 BillWoodruff 170
3 Zoltán Zörgő 165
4 Maciej Los 163
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 2 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100