Skip to content

尝试运行C#生成的wasm失败。 #4167

Open
@snikeguo

Description

@snikeguo

重现步骤:

  1. Set up SDKs
    If you don't already have it, install .NET 10+ preview SDK
    可以直接用这个链接https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-10.0.100-preview.2-windows-x64-installer

  2. Install template and build
    dotnet new install BytecodeAlliance.Componentize.DotNet.Templates
    dotnet new componentize.wasi.cli -o MyApp
    dotnet build MyApp
    把iwasm.exe复制到MyApp\bin\Debug\net10.0\wasi-wasm\native

  3. 执行 .\iwasm.exe .\MyApp.wasm
    WASM module load failed: unknown binary version

4.我下载了wasmtime.exe ,执行
.\wasmtime.exe .\MyApp2.wasm
就能得到Hello world from compontize-dotnet!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions