Skip to content

Does not work with ASP.NET Core 3 #25

Open
@ugumba

Description

I was able to configure endpoints like this (instead of UseRouteAnalyzer()):

            app.UseEndpoints(config =>
            {
                config.MapControllers();

                // Manually add RouteAnalyzer endpoints
                config.MapControllerRoute("routeAnalyzer", "{controller=RouteAnalyzer_Main}/{action=ShowAllRoutes}");
                config.Map("/routes", context =>
                {
                    context.Response.Redirect("RouteAnalyzer_Main/ShowAllRoutes");
                    return Task.CompletedTask;
                });
            });

But the page rendering fails with

TypeLoadException: Could not load type 'Microsoft.AspNetCore.Mvc.Internal.HttpMethodActionConstraint' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions