componentize-dotnet
componentize-dotnet copied to clipboard
Tooling for creating WebAssembly components from C#
I edit my project following the instruction, but failed. The error message is just like this: ``` wasiDotnet failed,thr (0.3 seconds) → bin\Debug\net9.0\wasi-wasm\wasiDotnet.dll C:\Users\Administrator\.nuget\packages\microsoft.net.illink.tasks\9.0.0-rc.1.24431.7\build\Microsoft.NET.ILLink.targets(207,5): error NETSDK1102: Optimizing assemblies for size...
Linux 'tar' does not support `zip` format so due to https://github.com/bytecodealliance/componentize-dotnet/blob/26b5b5a839f7a2a786cfe9d2498dfa42dd6ac525/src/WasmComponent.Sdk/WasmComponent.Sdk.csproj#L70, packages built on Linux will not have the `.exe`
fix #33 right now just some hacks to try to get it to build but ran into https://github.com/dotnet/runtime/issues/106845
.net9 preview 7 should have support for building components and wit-bindgen The project should support this but we should add a test or two
Currently the wit files get put into the intermediate folder `obj\Debug\net8.0\wasi-wasm\wit_bindgen`. This makes it hard to discover the Wit files and the interfaces/code that needs to be implemented for the...
On biulding a project created following the instaructions in the README, I recevie the following warning. The build does succeed, and produces a runable Wasm. ``` CSC : warning CS8784:...
We can automate the process of modifying these values in a new csproj: https://github.com/bytecodealliance/componentize-dotnet?tab=readme-ov-file#3-configure-the-compilation-output by providing a template https://learn.microsoft.com/en-us/dotnet/core/tools/custom-templates that can be installed and create with `dotnet new install nuget`...
There isn't one at the current moment but there is some work in progress: https://github.com/dotnet/msbuild/blob/main/documentation/specs/proposed/BuildCheck.md The plan of release is in .net 9: https://github.com/dotnet/msbuild/blob/main/documentation/specs/proposed/BuildCheck.md#configuration
https://github.com/bytecodealliance/componentize-dotnet/blob/b3a97cb1a0904cd7e35c8d091ef8010fcddad03b/src/WasmComponent.Sdk/build/WasmComponent.Sdk.targets#L48-L57