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 is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
Until I added <SelfContained>true</SelfContained>.
I edit my project following the instruction, but failed. The error message is just like this:
Until I added
<SelfContained>true</SelfContained>
.