Browse Source

Fixed: copying native files

Marcin Ziąbek 1 year ago
parent
commit
3353e894b6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/QuestPDF/Skia/SkNativeDependencyProvider.cs

+ 2 - 1
Source/QuestPDF/Skia/SkNativeDependencyProvider.cs

@@ -16,13 +16,14 @@ internal static class SkNativeDependencyProvider
 
         foreach (var nativeFilePath in Directory.GetFiles(nativeFilesPath))
         {
-            var targetPath = new FileInfo(nativeFilePath)
+            var targetDirectory = new FileInfo(nativeFilePath)
                 .Directory
                 .Parent // native
                 .Parent // platform
                 .Parent // runtimes
                 .FullName;
             
+            var targetPath = Path.Combine(targetDirectory, Path.GetFileName(nativeFilePath));
             CopyFileIfNewer(nativeFilePath, targetPath);
         }
     }