Will it start another 30 seconds when the computer is in standby mode (for example, if you start it by double-clicking when the computer is not busy loading windows)?
When Windows starts, the computer is usually busy with a lot of things, and this can cause a slowdown for your application. Not much you can do.
But some general tips for improving the launch of a WPF application:
- Create an instance of the controls that you really need to show the user.
- Reduce the complexity of your controls / windows.
- Do not spend much time in the designers of your controls and windows.
- Even innocent things, such as reading a file from a local disk, can take a long time if the disk is busy with other things (as is usually the case when starting Windows)
- - , .
- -
BackgroundWorker / .
, app.config, , ( , ):
<configuration>
<runtime>
<generatePublisherEvidence enabled="false"/>
</runtime>
</configuration>
- MSDN .