Skip to content

Update ASP.NET Core F# project templates to use new minimal hosting APIs in .NET 6 #34123

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

Closed
Tracked by #32378
DamianEdwards opened this issue Jul 6, 2021 · 0 comments · Fixed by #35833
Closed
Tracked by #32378
Assignees
Labels
feature-templates old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone

Comments

@DamianEdwards
Copy link
Member

F# equivalent of #33944

The ASP.NET Core project templates included in the SDK should be updated to use the new minimal hosting APIs introduced in .NET 6 as they represent the new idiomatic way to bootstrap (configure and start) the relevant host for the majority of scenarios.

  • The CreateHostBuilder method would be removed as the patterns that were previously reliant on this are no longer necessary
  • The Startup class would be removed and its contents applied as applicable to the calls to WebApplicationBuilder in Program.cs
@DamianEdwards DamianEdwards added this to the 6.0-preview7 milestone Jul 6, 2021
@DamianEdwards DamianEdwards added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-templates labels Jul 6, 2021
@adityamandaleeka adityamandaleeka removed this from the 6.0-preview7 milestone Aug 2, 2021
@mkArtakMSFT mkArtakMSFT added this to the 6.0.0 milestone Aug 3, 2021
@rafikiassumani-msft rafikiassumani-msft added old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Sep 9, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-templates old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants