You want to add a new CSS file to your ASP.NET Core application. Which directory should you place this file in to ensure it's accessible by the web server?
- wwwroot
- Views
- Controllers
- Models
To make static files like CSS accessible to the web server in an ASP.NET Core application, you should place them in the wwwroot directory. This directory is designed to hold files that should be served directly to clients.
Loading...
Related Quiz
- You are building a blog application where only the blog author should be able to edit or delete a post. How would you use the [Authorize] attribute to achieve this behavior?
- You want to use a database with your ASP.NET Core web application. Which ORM (Object-Relational Mapping) framework is natively supported by ASP.NET Core for this purpose?
- The _______ directive in _ViewImports.cshtml is used to include a namespace across multiple Razor views.
- For configuration in an ASP.NET Core application, which of the following providers is NOT a default configuration provider?
- In scenarios where the database schema and model are out of sync, developers can use _________ in Entity Framework Core to reconcile differences.