Skip to content

dotnet8 Aot ,Errors cannot be resolved even with all efforts #727

@ccnetcore

Description

@ccnetcore

No complex logic was used, just copied examples from GitHub and added some objects
Not using JSON serialization, etc

Unhandled Exception: System.NotSupportedException: JsonTypeInfo metadata for type 'System.Collections.Generic.List`1[AiFileMaster.Server.Tools.FileTools.FileItemInfo]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.

I hope someone can solve it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions