Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changend AppDomain.Current to AppDomain.CurrentDomain for WPF application.

...

Code Block
var directory = typeof(MainWindow).Assembly.GetDirectory();
AppDomain.CurrentCurrentDomain.PreloadAssemblies(directory);

...