Skip to content

Commit

Permalink
make SDK can load from loaded assembly locations
Browse files Browse the repository at this point in the history
  • Loading branch information
loning committed Apr 20, 2019
1 parent 3d80ae8 commit cee0735
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/AElf.Runtime.CSharp.Core/SdkStreamManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public Stream GetStream(AssemblyName assemblyName)
var path = Path.Combine(_sdkDir, assemblyName.Name + ".dll");
if (!File.Exists(path))
{
return null;
var assembly = Assembly.Load(assemblyName);

if (assembly == null)
return null;

path = assembly.Location;
}

if (!_cachedSdkStreams.TryGetValue(path, out var ms))
Expand Down

0 comments on commit cee0735

Please sign in to comment.