aelyo-softworks / Wice

Windows Interface Composition Engine is a .NET C# UI engine for creating Windows application.
Other
107 stars 5 forks source link

AOT Publish System.NotSupportedException: COM Interop requires ComWrapper instance registered for marshalling. #11

Closed sgf closed 3 months ago

sgf commented 3 months ago

.net 8+ Aot+ trim and total is too large(near 60mb)

got Error: System.NotSupportedException: COM Interop requires ComWrapper instance registered for marshalling

image

sgf commented 3 months ago

An experimental project (AOT,not using winform, using D2D, using PublishLzmaCompressed) Of course, this project is just a prototype, and many functions do not exist. It is just a helloworld

image

image

smourier commented 3 months ago

Wice (and DirectN below) are using COM extensively and are not AOT friendly (ComWrappers) for many reasons, the first one being they still support .NET Framework. And they don't require unsafe-marked code.

Migrating both projects would require a complete rewrite which is not planned today.

sgf commented 3 months ago

ok,tks

some ui framework (most is C++)

https://github.com/williamlzw/ExDUIR.NET https://github.com/williamlzw/ExDUIR https://github.com/duilib/duilib https://github.com/qdtroy/DuiLib_Ultimate

sgf commented 1 week ago

image Today, I noticed that I had done some testing before. Here is a picture with some aot data for reference.