Skip to content

NativeFileReference regression in .NET 8.0 #93538

@b-straub

Description

@b-straub

Description

A object detection sample project using the ONNX runtime as WASM static library is running well using NET7.0 but fails on NET8.0rc with the following error chain:

``

await createEmscripten(module);
..
mono_download_assets();
...
}).catch(err => {
loaderHelpers.err("Error in mono_download_assets: " + err);
mono_exit(1, err);
throw err;
});

``

The error comes obviously from the inclusion of the ONNX rumtime.

Reproduction Steps

Clone the repository WASMObjectDetector
Run the WASMObjectDetector7 sample
Run the WASMObjectDetector8 sample

Expected behavior

WASMObjectDetector8 sample working as well.

Actual behavior

WASMObjectDetector8 sample -> failing with "Error in mono_download_assets"

Regression?

working on NET7.0

Known Workarounds

none

Configuration

VS Version 17.8.0 Preview 3.0
NET7.0 SDK 7.0.402
NET8.0rc2 SDK 8.0.100-rc.2.23502.2

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions