componentize-dotnet icon indicating copy to clipboard operation
componentize-dotnet copied to clipboard

error NETSDK1102 when build in .Net 9

Open drunkenQCat opened this issue 1 year ago • 1 comments

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>.

drunkenQCat avatar Sep 20 '24 17:09 drunkenQCat