Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
AddReference: fixed unable to import assembly by path
added a workaround for dotnet/runtime#123951
  • Loading branch information
lostmsu committed Feb 3, 2026
commit 4741401c63193933bc8ca97c7daa61c38f741f0d
5 changes: 5 additions & 0 deletions src/runtime/AssemblyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ private static void AssemblyLoadHandler(object ob, AssemblyLoadEventArgs args)

internal static AssemblyName? TryParseAssemblyName(string name)
{
// workaround for https://github.com/dotnet/runtime/issues/123951
if (name.IndexOfAny(new[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }) >= 0)
{
return null;
}
try
{
return new AssemblyName(name);
Expand Down
Loading