Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
SolCodeGen - attempt loading assemblies without erroring on version mismatch

See merge request company-projects/Meadow!40
  • Loading branch information
zone117x committed Oct 5, 2018
2 parents 707d64b + 74d8e04 commit 3a3d5c5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Meadow.SolCodeGen/Compilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,17 @@ void Iterate(Assembly asm, Dictionary<string, Assembly> assemblies)
var referenced = asm.GetReferencedAssemblies();
foreach (var child in referenced)
{
var childAsm = Assembly.Load(child);
Assembly childAsm;
try
{
childAsm = Assembly.Load(child);
}
catch
{
var simpleAssemblyName = new AssemblyName { Name = child.Name };
childAsm = Assembly.Load(simpleAssemblyName);
}

Iterate(childAsm, assemblies);
}
}
Expand Down

0 comments on commit 3a3d5c5

Please sign in to comment.