Thanks to visit codestin.com
Credit goes to github.com

Skip to content

6.0.0-rc1 AOT发布的时候崩溃 #333

@showerror

Description

@showerror

日志如下:

System.NotSupportedException: 'AtomUI.Controls.Localization.CommonLangResourceKind[]' 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.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0x94
   at System.Array.InternalCreate(RuntimeType, Int32, Int32*, Int32*) + 0x1cd
   at System.Array.CreateInstance(Type, Int32) + 0x4d
   at System.RuntimeType.GetEnumValues() + 0x74
   at AtomUI.Theme.Language.LanguageProvider.BuildResourceDictionary(IResourceDictionary dictionary) + 0x316
   at AtomUI.Theme.ThemeManager.BuildLanguageResources() + 0xe4
   at AtomUI.Theme.ThemeManager.Configure() + 0xf2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions