(#16) Static Files in ASP NET Core

Опубликовано: 12 Февраль 2026
на канале: Jayant Tripathy
826
11

#aspnetcore #staticfiles
Static Files in ASP NET Core
This video demonstrate how to serve static files ( HTML, images, css and Javascript ) in ASP .NET Core.

https://corespider.com/lesson/static-...

In ASP .NET Core the default directory to store the static files is “wwwroot” folder and this folder should be present on the project root folder. By default in “wwwroot” folder the static files are serve in .NET Core application, however if we want to change it then we can do it by using UseWebRoot method (we will discuss it in our next article).

Middleware Options Object
UseDeveloperExceptionPage DeveloperExceptionPageOptions
UseDefaultFiles DefaultFilesOptions
UseStaticFiles StaticFileOptions
UseFileServer FileServerOptions

Don't forget to subscribe to "CoreSpider" !

Website : https://www.corespider.com/
Facebook :   / corespider  
Twitter :   / corespiderpro  
Instagram :   / corespider  
Github : https://github.com/corespider