Prioritize Dotnet libs on Mono AOT

This commit is contained in:
Wojtek Figat
2025-11-15 14:57:12 -08:00
parent f91c33e17c
commit 4aba0153f8

View File

@@ -2028,13 +2028,13 @@ static MonoAssembly* OnMonoAssemblyLoad(const char* aname)
String fileName = name;
if (!name.EndsWith(TEXT(".dll")) && !name.EndsWith(TEXT(".exe")))
fileName += TEXT(".dll");
String path = fileName;
String path = Globals::ProjectFolder / String(TEXT("/Dotnet/")) / fileName;
if (!FileSystem::FileExists(path))
{
path = Globals::ProjectFolder / String(TEXT("/Dotnet/shared/Microsoft.NETCore.App/")) / fileName;
if (!FileSystem::FileExists(path))
{
path = Globals::ProjectFolder / String(TEXT("/Dotnet/")) / fileName;
path = fileName;
}
}