Prioritize Dotnet libs on Mono AOT
This commit is contained in:
@@ -2028,13 +2028,13 @@ static MonoAssembly* OnMonoAssemblyLoad(const char* aname)
|
|||||||
String fileName = name;
|
String fileName = name;
|
||||||
if (!name.EndsWith(TEXT(".dll")) && !name.EndsWith(TEXT(".exe")))
|
if (!name.EndsWith(TEXT(".dll")) && !name.EndsWith(TEXT(".exe")))
|
||||||
fileName += TEXT(".dll");
|
fileName += TEXT(".dll");
|
||||||
String path = fileName;
|
String path = Globals::ProjectFolder / String(TEXT("/Dotnet/")) / fileName;
|
||||||
if (!FileSystem::FileExists(path))
|
if (!FileSystem::FileExists(path))
|
||||||
{
|
{
|
||||||
path = Globals::ProjectFolder / String(TEXT("/Dotnet/shared/Microsoft.NETCore.App/")) / fileName;
|
path = Globals::ProjectFolder / String(TEXT("/Dotnet/shared/Microsoft.NETCore.App/")) / fileName;
|
||||||
if (!FileSystem::FileExists(path))
|
if (!FileSystem::FileExists(path))
|
||||||
{
|
{
|
||||||
path = Globals::ProjectFolder / String(TEXT("/Dotnet/")) / fileName;
|
path = fileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user