Skip to content

Could not get pinvoke, or callbacks for method 'Sentry.Native.C::sentry_options_set_logger' #3369

@klemmchr

Description

@klemmchr

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0.5

OS

Any (not platform specific)

SDK Version

4.6.2

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Compile a Blazor project with AoT enabled (Repro from Sentry fails to initialize in Blazor with AoT enabled #3263 should work)
  2. Observe warning in build

Expected Result

No warning

Actual Result

During AoT the following warning is emitted

[WRN] /usr/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.5/Sdk/WasmApp.Native.targets(338,5): warning WASM0001: Could not get pinvoke, or callbacks for method 'Sentry.Native.C::sentry_options_set_logger' because 'Parsing function pointer types in signatures is not supported.' [/builds/acodia-care/acodia-care/src/Web/Web.Blazor/Web.Blazor.csproj]

The app itself works fine, I don't observe any errors in console or during build.

Metadata

Metadata

Assignees

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions