Ignore dllmap logic when running under NativeAOT #23

Merge aplicado
cosmonaut aplicou merge dos 1 commits de TheSpydog/MoonWorks:nativeaot-dllmap em main 2022-08-22 16:43:20 +00:00
1 arquivos alterados com 6 adições e 0 exclusões

Ver arquivo

@ -84,6 +84,12 @@ namespace MoonWorks
[ModuleInitializer]
public static void Init()
{
// Ignore NativeAOT platforms since they don't perform dynamic loading.
if (!RuntimeFeature.IsDynamicCodeSupported)
{
return;
}
// Get the platform and architecture
string os = GetPlatformName();
string cpu = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();