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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *