-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Setting WasmBuildNative
to false produces no output wasm binary
#96863
Comments
Is this with a browser-wasm or wasi-wasm project? |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionAdding the following Related: #96419 @AaronRobinsonMSFT @lewing @yowl @jsturtevant Reproduction StepsAdd Expected behaviorI would expect a non AoT build to be performed and a wasm binary to be outputted. Actual behaviorSuccessful build but no wasm binary produced. Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
This seems to be a wasi-wasm project. What was the build output? |
How did you try to build this? I can build it locally, and get:
|
Yes that's what I get as well. But that's not the correct wasm file. It should be named charp-wasm.wasm. If you inspect the wasm file you have there you will see it only contains the dotnet mono runtime and not the code for the project. @radical |
|
Oh okay, that wasn't apparent from the name. I did use WasmSingleFileBundle=true at the same time but that still resulted in the same output as you got. If the settings aren't compatible with each other shouldn't that produce an error or warning or something? @radical |
Description
Adding the following
<WasmBuildNative>false</WasmBuildNative>
to a property group in csproj and then building a project results in a successful build but no wasm binary is produces.Related: #96419
@AaronRobinsonMSFT @lewing @yowl @jsturtevant
Reproduction Steps
Add
<WasmBuildNative>false</WasmBuildNative>
and to Numbers.csproj in example project found below and build.https://github.com/silesmo/wasm-unmanaged-callers-bug/blob/main/mono-example/Numbers.csproj
Expected behavior
I would expect a non AoT build to be performed and a wasm binary to be outputted.
Actual behavior
Successful build but no wasm binary produced.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: