Skip to content

[wasm] browser-eventpipe sample broken with PerfTracing build - JSExportAttribute' is only supported on: 'browser' #77630

@radical

Description

@radical

This is reproducible on main. PerfTracing build on runtime-wasm:

/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Program.cs(136,10): error CA1416: This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'. [/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
##[error]src/mono/sample/wasm/browser-eventpipe/Program.cs(136,10): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'.
/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Program.cs(142,10): error CA1416: This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'. [/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
##[error]src/mono/sample/wasm/browser-eventpipe/Program.cs(142,10): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'.
/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Program.cs(106,10): error CA1416: This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'. [/__w/1/s/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
##[error]src/mono/sample/wasm/browser-eventpipe/Program.cs(106,10): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'JSExportAttribute' is only supported on: 'browser'.

cc @lambdageek @pavelsavara

TODO:

  • We should build the threading, and perftracing related samples on runtime pipeline too

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions