Problem description:
Here the field cachedTypes is currently unreachable because it relies on Assembly.GlobalAssemblyCache which is false in .NET Core and IsNetFrameworkAssembly, which is also always false because it tests if assembly Location path is .NET Framework path, while (on Windows) .NET Core assemblies are on C:\Program Files\dotnet\shared\Microsoft.NETCore.App\... path.
Actual behavior:
Types are not cached
Expected behavior:
.NET Core types are cached (?)
Problem description:
Here the field cachedTypes is currently unreachable because it relies on
Assembly.GlobalAssemblyCachewhich is false in .NET Core andIsNetFrameworkAssembly, which is also always false because it tests if assemblyLocationpath is .NET Framework path, while (on Windows) .NET Core assemblies are onC:\Program Files\dotnet\shared\Microsoft.NETCore.App\...path.Actual behavior:
Types are not cached
Expected behavior:
.NET Core types are cached (?)