Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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.
 
Share this answer
 
Comments
Espen Harlinn 2-Nov-11 21:01pm    
5'ed - even if you didn't reference http://www.codeproject.com/KB/cs/Depends4Net_Part1.aspx
Mehdi Gholam 3-Nov-11 0:44am    
I will go and die now!
Sergey Alexandrovich Kryukov 2-Nov-11 21:18pm    
Yes, a good idea, my 5.
--SA
Mehdi Gholam 3-Nov-11 0:45am    
Thanks
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. :-) 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
 
Share this answer
 
v2
Comments
Espen Harlinn 2-Nov-11 21:02pm    
Good advice :)
Sergey Alexandrovich Kryukov 2-Nov-11 21:17pm    
Thank you, Espen.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900