Skip to content
New issue

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

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

Already on GitHub? # to your account

Document warning that Scaffolding May Fails with Old-Style Entrypoint Programs #33940

Closed
bukowa opened this issue Oct 27, 2024 · 5 comments
Closed

Comments

@bukowa
Copy link

bukowa commented Oct 27, 2024

Scaffolding commands may not work correctly with applications using older entrypoint styles (e.g., public static void Main). Modern ASP.NET Core scaffolding assumes the minimal hosting model (WebApplication.CreateBuilder) for program initialization. Using the traditional Startup class or non-minimal hosting entrypoints could lead to errors or incomplete scaffolding output.

/
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-8.0&tabs=visual-studio

@guardrex
Copy link
Collaborator

Hello @bukowa ... Please re-open this issue using the Open a documentation issue link/feedback form at the bottom of the article. Use of the form adds metadata to your GitHub issue that cross-links the topic and pings the author automatically for a faster response.

@bukowa
Copy link
Author

bukowa commented Oct 28, 2024

Hello @bukowa ... Please re-open this issue using the Open a documentation issue link/feedback form at the bottom of the article. Use of the form adds metadata to your GitHub issue that cross-links the topic and pings the author automatically for a faster response.

Thanks, done. Would be cool to have this information in the README.md of this repository.

@guardrex
Copy link
Collaborator

When New issue is selected for a doc issue, the GH template states it ...

Before you open an issue

If the issue is with an ASP.NET Core document:

  • Do not open a new issue using this form.
  • Open the issue using the Open a documentation issue link and feedback form at the bottom of the article.

The problem that I see is that we don't have that for the "blank issue" template. I'll look now and see if we can add that.

@bukowa
Copy link
Author

bukowa commented Oct 28, 2024

@guardrex True, would it be possible here (*when creating new issue on github), that after clicing doc issue it would automatically ask for the url and fill the template?
So we don't have to scroll to the bottom (*and leave github) of the page to click it ?

Image

@guardrex
Copy link
Collaborator

guardrex commented Oct 28, 2024

I'm not sure about that ... pinging @Rick-Anderson who might know.

For now, I just put that PR up to at least add it to the README and add a blank issue template ... and to ask about adding a section to the Fundamentals > Overview article.

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

No branches or pull requests

2 participants