I have a very strange issue with Assembly.LoadFrom call. My application uses it intensively on startup to load ~ 500 assemblies. Usually it works OK and takes only ~50ms to load all of them.
But every morning the very first application launch spends ~15 seconds on that operation. Every single day the very first run is very slow because of that.
The call looks pretty simple:
Assembly assembly = Assembly.LoadFrom(path);
Probably the reason - Windows Defender. But I have no clue how to diagnose it further. Maybe anyone has ideas?