Minor switch in how the ScriptFactory prioritizes it's assembly lookups.
This commit is contained in:
parent
16ef50f59a
commit
a1cc6c41a4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue