Skip to content

With wasi-experimental, could not find wasi-sdk when trying to publish wasi-wasm console application error - a workaround proposal #110111

Open
@LMA1980

Description

@LMA1980

When trying to publish a wasi-wasm console app.

We may be affected by the following error .dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk/9.0.0/Sdk/WasiApp.targets(116,5): error : Could not find wasi-sdk. Install wasi-sdk and set $(WASI_SDK_PATH) . It can be obtained from https://github.com/WebAssembly/wasi-sdk/releases SDK is required for building native files.

This is related to the closed issue #94671.

I found out after reading the WasiApp.targets its looking for ${WAIS_SDK_PATH)/VERSION24 which is missing when using this install method.

The simple workaround is to do touch $WASI_SDK_PATH/VERSION24.

Hopefully this may help either find a permanent solution or provided appropriate documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions