wmchuang/Ava.SocketTool

Aot后打不开

Opened this issue · 1 comments

点exe没反应

AotDemo.Models.NetTypeEnum[]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility System.NotSupportedException: 'AotDemo.Models.NetTypeEnum[]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility
at System.Reflection.Runtime.General.TypeUnifier.WithVerifiedTypeHandle(RuntimeArrayTypeInfo, RuntimeTypeInfo) + 0x5b

在EnumExtension的GetList方法中出错了, 好像不太支持泛型