Minor switch in how the ScriptFactory prioritizes it's assembly lookups.

This commit is contained in:
Scionwest_cp 2011-09-19 21:04:39 -07:00
parent 16ef50f59a
commit a1cc6c41a4

View file

@ -42,12 +42,12 @@ namespace rScripting.LateBinding
//See if a file exists first with this assembly name. //See if a file exists first with this assembly name.
if (File.Exists(assembly)) if (File.Exists(assembly))
{ {
a = Assembly.Load(new AssemblyName(assembly)); a = Assembly.Load(assembly);
} }
//If not, then try and load it differently //If not, then try and load it differently
else else
{ {
a = Assembly.Load(assembly); a = Assembly.Load(new AssemblyName(assembly));
} }
if (a == null) if (a == null)