Skip to content

Commit 4741401

Browse files
committed
AddReference: fixed unable to import assembly by path
added a workaround for dotnet/runtime#123951
1 parent 604c567 commit 4741401

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtime/AssemblyManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ private static void AssemblyLoadHandler(object ob, AssemblyLoadEventArgs args)
123123

124124
internal static AssemblyName? TryParseAssemblyName(string name)
125125
{
126+
// workaround for https://github.com/dotnet/runtime/issues/123951
127+
if (name.IndexOfAny(new[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }) >= 0)
128+
{
129+
return null;
130+
}
126131
try
127132
{
128133
return new AssemblyName(name);

0 commit comments

Comments
 (0)