Ver Fonte

Experiment: NativeLibrary.Load

Marcin Ziąbek há 10 meses atrás
pai
commit
05f2d2ae18
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      Source/QuestPDF/Helpers/NativeDependencyProvider.cs

+ 4 - 0
Source/QuestPDF/Helpers/NativeDependencyProvider.cs

@@ -35,6 +35,10 @@ internal static class NativeDependencyProvider
                 .Parent // platform
                 .Parent // runtimes
                 .FullName;
+
+#if NETCOREAPP3_0_OR_GREATER
+            NativeLibrary.Load(nativeFilePath);
+#endif
             
             NativeLibrary.Load(nativeFilePath);
             var targetPath = Path.Combine(targetDirectory, Path.GetFileName(nativeFilePath));