Skip to content

System.NotSupportedException Message : 'Friflo.Engine.ECS.Index.ValueClassIndex`2[Friflo.Engine.ECS.UniqueEntity,System.String] #65

@friflo

Description

@friflo

Bug specific to Native AOT.
Version: Friflo.Engine.ECS v3.2.3

When calling aot.CreateSchema() the exception below is thrown:

System.NotSupportedException
Message : 'Friflo.Engine.ECS.Index.ValueClassIndex`2[Friflo.Engine.ECS.UniqueEntity,System.String]' 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
 StackTrace :    at System.Reflection.Runtime.General.TypeUnifier.WithVerifiedTypeHandle(RuntimeConstructedGenericTypeInfo, RuntimeTypeInfo[]) + 0x7e
   at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.MakeGenericType(Type[]) + 0x207
   at Friflo.Engine.ECS.SchemaTypes.OrderComponentTypes() + 0xd5
   at Friflo.Engine.ECS.SchemaTypes.CreateSchemaTypes(IList`1 assemblies) + 0xc3
   at Friflo.Engine.ECS.NativeAOT.CreateSchemaInternal() + 0x21
   at SatansLilHelper.Engine.InitializeECS() + 0xc4
   at SatansLilHelper.Engine..ctor() + 0x19
   at Program.<Main>$(String[] args) + 0x29

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions