Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1 update: Areas #15895

Closed
unionthugface opened this issue Nov 27, 2019 — with docs.microsoft.com · 3 comments · Fixed by #17094
Closed

3.1 update: Areas #15895

unionthugface opened this issue Nov 27, 2019 — with docs.microsoft.com · 3 comments · Fixed by #17094
Assignees
Labels
doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link
Contributor

unionthugface commented Nov 27, 2019

These instructions do not work for .NET Core 3.0. There is no more app.useMVC. Please instruct how to do this with endpoints and/or AddControllersWithViews. Thank you.

@Rick-Anderson edit: 10K PV


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Nov 27, 2019
@Rick-Anderson Rick-Anderson self-assigned this Nov 28, 2019
Copy link

ghost commented Dec 4, 2019

+1 today core 3.1 is out

@DrewBrasher
Copy link

DrewBrasher commented Dec 5, 2019

This is how I'm doing it in core 3.1:

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "areaRoute",
                    pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Home}/{action=Index}/{id?}");
                endpoints.MapRazorPages();
            });

@talanc
Copy link

talanc commented Dec 17, 2019

Thanks @DrewBrasher
I got caught up trying to use MapAreaControllerRoute instead of just MapControllerRoute.

@Rick-Anderson Rick-Anderson changed the title Needs to be updated for .NET Core 3.0 3.1 update: Areas Dec 17, 2019
@Rick-Anderson Rick-Anderson added this to To do in Next sprint via automation Dec 17, 2019
@Rick-Anderson Rick-Anderson removed this from To do in Next sprint Feb 21, 2020
@Rick-Anderson Rick-Anderson added this to To do in February 2020 via automation Feb 21, 2020
@Rick-Anderson Rick-Anderson moved this from To do to Next up in February 2020 Feb 21, 2020
@Rick-Anderson Rick-Anderson moved this from Next up to In progress in February 2020 Feb 25, 2020
February 2020 automation moved this from In progress to Done Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
No open projects
February 2020
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants