Skip to content

Commit

Permalink
Added check in calling method
Browse files Browse the repository at this point in the history
  • Loading branch information
OsirisTerje committed Jan 16, 2023
1 parent 037e1b5 commit 3924b98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ private Assembly OnResolving(AssemblyLoadContext context, AssemblyName name)
return _loadContext.LoadFromAssemblyPath(assemblyPath);
}
}

if (name.Version == null)
return null;
foreach(string frameworkDirectory in AdditionalFrameworkDirectories)
{
var versionDir = FindBestVersionDir(frameworkDirectory, name.Version);
Expand Down

0 comments on commit 3924b98

Please sign in to comment.