Skip to content

Commit

Permalink
Don't try to early load DLLs that aren't present on-disk. Closes #91
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Oct 31, 2012
1 parent d958463 commit 801fdab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ReactiveUI/RxApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ static IEnumerable<string> attemptToEarlyLoadReactiveUIDLLs()

return guiLibs.SelectMany(x => {
var fullName = String.Format("{0}, Version={1}, Culture=neutral, PublicKeyToken=null", x, name.Version.ToString());
var path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), x);
if (!File.Exists(path)) {
LogHost.Default.Debug("Couldn't find {0}", path);
return Enumerable.Empty<string>();
}
try {
Assembly.Load(fullName);
return new[] {x};
Expand Down

0 comments on commit 801fdab

Please sign in to comment.