Просмотр исходного кода

Adjusted 640bit architecture message

Marcin Ziąbek 1 год назад
Родитель
Сommit
345694188c
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      Source/QuestPDF/Skia/SkNativeDependencyCompatibilityChecker.cs

+ 4 - 1
Source/QuestPDF/Skia/SkNativeDependencyCompatibilityChecker.cs

@@ -34,9 +34,12 @@ internal static class SkNativeDependencyCompatibilityChecker
                 "Your runtime is currently not supported by QuestPDF. " +
                 "Your runtime is currently not supported by QuestPDF. " +
                 $"Currently supported runtimes are: {string.Join(", ", SkNativeDependencyProvider.SupportedPlatforms)}.";
                 $"Currently supported runtimes are: {string.Join(", ", SkNativeDependencyProvider.SupportedPlatforms)}.";
             
             
-            if (RuntimeInformation.ProcessArchitecture == Architecture.X64)
+            if (RuntimeInformation.ProcessArchitecture is Architecture.X86)
                 message += $"{paragraph}Please consider setting the 'Platform target' property to 'x64' in your project settings.";
                 message += $"{paragraph}Please consider setting the 'Platform target' property to 'x64' in your project settings.";
             
             
+            if (RuntimeInformation.ProcessArchitecture is Architecture.Arm)
+                message += $"{paragraph}Please consider setting the 'Platform target' property to 'Arm64' in your project settings.";
+            
             throw new InitializationException(message, innerException);
             throw new InitializationException(message, innerException);
         }
         }