The __________ file in an ASP.NET Core project contains routes, middleware configurations, and other app initializations.
- Program.cs
- Startup.cs
- Global.asax
- Web.config
The "Startup.cs" file in an ASP.NET Core project is a crucial part of the application's configuration and initialization. It defines routes, configures middleware, sets up services, and performs other app initializations. It is the entry point for configuring the ASP.NET Core application pipeline.
Loading...
Related Quiz
- How can you protect a controller action to be accessible only by users with the role "Admin" using the [Authorize] attribute?
- To ensure a column is always populated in the database but its value is automatically generated on insert or update, you should configure it as a _________ property.
- What is the primary purpose of the [Authorize] attribute in ASP.NET Core?
- In a blogging platform built with ASP.NET Core MVC, when a user submits a new blog post, which component would handle the validation and submission process?
- In ASP.NET Core Identity, what's the best way to customize the hashing algorithm used for storing passwords?