DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

1001binary
1001binary

Posted on

How to fix Static Files not working in ASP.NET Core

One day I have been working on a project using ASP.NET Core. I have experienced a problem serving static files such as index.html in ASP.NET Core. Basically, I thought that ASP.NET core package included handling and configuring static files.

Finally, I ended up installing a separate package Microsoft.AspNetCore.StaticFiles to get it worked.

Hope you enjoy this post.

Happy coding :)

Top comments (0)

🌚 Browsing with dark mode makes you a better developer by a factor of exactly 40.

It's a scientific fact.