Skip to content

Handler with API cannot be referenced by MAUI project. #147

Description

@QadiymStewart

Great libary, running into an issue. I have a project containing A MAUI project, a Blazor Web Project and an RCL for shared components.
All my handlers are in the RCL project under feature folders.

By adding [MapGet("/api/orders")] to my handler and app.MapProjectEndpoints();
The build fails.

I have to add to the RCL project causing the MAUI app not to build.

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'.
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64'.

Can you provide some guidance? My end goal is for the web and maui app to share the handlers and get the benefits of the generated api endpoints also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions