英文:
How to produce single WASM file using WASI SDK C#
问题
如何使用.NET WASI SDK生成单个WASM文件?这是我的项目文件:
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
目前WASI SDK生成dotnet.wasm + myapp.dll,但我想要dotnet.wasm + myapp.wasm。
英文:
How to produce single WASM file using .NET WASI SDK? Here is my project file
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Currently WASI SDK produce dotnet.wasm + myapp.dll, but I would like to have dotnet.wasm + myapp.wasm
答案1
得分: 1
<WasmSingleFileBundle>true</WasmSingleFileBundle>
英文:
You should use.
<WasmSingleFileBundle>true</WasmSingleFileBundle>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论