Skip to content

Commit

Permalink
Remove LibraryImport for issues with Blazor WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Oct 12, 2023
1 parent 0a70697 commit fa3ec30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 337 in src/PDFtoImage/PdfiumViewer/NativeMethods.Pdfium.cs

View workflow job for this annotation

GitHub Actions / SonarCloud

Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
#if NET7_0_OR_GREATER && FALSE
[LibraryImport("pdfium")]
[UnmanagedCallConv(CallConvs = new Type[] { typeof(CallConvCdecl) })]
public static partial void FPDF_InitLibrary();
Expand Down

0 comments on commit fa3ec30

Please sign in to comment.