From fa3ec304d73d6a33ba59e5fc2fec8f1003d9f49b Mon Sep 17 00:00:00 2001 From: David Sungaila Date: Fri, 13 Oct 2023 01:51:14 +0200 Subject: [PATCH] Remove LibraryImport for issues with Blazor WebAssembly --- src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs b/src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs index 4cb320c3..2f732840 100644 --- a/src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs +++ b/src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs @@ -334,7 +334,8 @@ private static int FPDF_GetBlock(IntPtr param, uint position, IntPtr buffer, uin private static partial class Imports { -#if NET7_0_OR_GREATER + // TODO: LibraryImportAttribute is not supported by Blazor WebAssembly right now +#if NET7_0_OR_GREATER && FALSE [LibraryImport("pdfium")] [UnmanagedCallConv(CallConvs = new Type[] { typeof(CallConvCdecl) })] public static partial void FPDF_InitLibrary();