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)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.