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

Creating a modular ASP.NET Core application tutorial does not work #14413

Closed
xperiandri opened this issue Oct 1, 2023 · 7 comments · Fixed by #14415
Closed

Creating a modular ASP.NET Core application tutorial does not work #14413

xperiandri opened this issue Oct 1, 2023 · 7 comments · Fixed by #14415
Labels

Comments

@xperiandri
Copy link
Contributor

Describe the bug

I tried following the tutorial Creating a modular ASP.NET Core application and it does not work.
Module startup class never runs

To Reproduce

Follow the tutorial

Expected behavior

Tutorial describes all the steps to create a modular app skeleton

@xperiandri
Copy link
Contributor Author

Reproduction project.zip

@jtkech
Copy link
Member

jtkech commented Oct 1, 2023

Your web app should reference your module.

@agriffard
Copy link
Member

agriffard commented Oct 1, 2023

You didn't add the routing in the startup.cs of your module:

routes.MapAreaControllerRoute(
    name: "Home",
    areaName: "OrchardCore.Mvc.HelloWorld",
    pattern: "",
    defaults: new { controller = "Home", action = "Index" }
);

@xperiandri
Copy link
Contributor Author

OK, but what if I don't want to register any routing to my module?

@xperiandri
Copy link
Contributor Author

xperiandri commented Oct 1, 2023

Your web app should reference your module.

Ah stupid mistake, thanks!

@xperiandri
Copy link
Contributor Author

Could you have a look at #14414, please?

@xperiandri
Copy link
Contributor Author

Created the PR #14415 to prevent such issues that I had

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants