title: WPF Application very slow to load initial window when launched from Visual Studio
body: <p>I have a relatively simple WPF application. Whenever I launch it from within Visual Studio 2012 (in Debug or Release mode), it is very slow to start up (can literally take minutes). 
  There is some custom initialization work done (reading files and loading data from a SQLite database), but it should be completed within 1s as it takes less time than that when I launch the application directly by clicking on the Debug/myapp.exe file.</p>
  
  <p>The strange behavior is that if I break the execution and immediately continue ("play" button in the IDE), the window will load instantly. 
  If I press F5 "Start Debugging" the problem will arise, but it will load instantly if I press Ctrl+F5 "Start without debugging".</p>
  
  <p>I am using .NET 4.5 in x86 mode.</p>
  
  <p>I tried profiling using dotTrace Performance profiler but the problem cannot be reproduced this way (it will load instantly).</p>
  
  <p>Do you have any idea about what could be causing this?</p>