1

I am developing a Winform application in c# that uses tons of assemblies which is very slow upon first time the user open the forms that use these assemblies, is there a way to load all of these assemblies into memory when the application is starting up so the users don't have wait for several seconds.

Cœur
  • 37,241
  • 25
  • 195
  • 267
esnezz
  • 619
  • 1
  • 7
  • 19
  • Possible duplicate of [Preload all assemblies (JIT)](http://stackoverflow.com/questions/5175743/preload-all-assemblies-jit) – Klinger Dec 22 '16 at 06:34

1 Answers1

1

You can use for example

Assembly.LoadFrom(path)

This is sample from MSDN. In my project I use XML file as a list of assemblies to load and than I search specific folders for dll files and try to load them (they can be native dll's so I can't load it).