Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An ASP.NET Core tool for generating static websites from MVC views.
TerevintoSoftware.StaticSiteGenerator is an open-source .NET tool that turns ASP.NET Core MVC views (including partials and layouts) into static HTML files for cheap hosting.
TerevintoSoftware.StaticSiteGenerator is an ASP.NET Core tool that converts Razor Views into standalone HTML files, allowing C# developers to publish static sites to any cheap or free host. It accepts Views, Partials, and Layouts as input and produces static HTML output; it does not support Models in the current version. The project is maintained by Camilo Terevinto, is licensed under MIT, and is distributed as a NuGet package.
The tool takes the views you write and renders them server-side into HTML files during a build step. You structure your site as you would in an MVC project — with Layouts for the chrome and Partials for repeated blocks — and the generator outputs a folder of static pages that any web server can serve.
Yes, the project is open source under the MIT license, so you can use, modify, and distribute it freely, including in commercial projects.
Not yet. The README states that because the tool converts Views into HTML files, using Models is not possible at this time.
You need Visual Studio 2025 with .NET 10 and the ASP.NET Core workload, plus git. You can then run dotnet build or dotnet test.
The official website at staticsitegenerator.net lists features, and there is a sample blog repository at github.com/CamiloTerevinto/StaticBlogTemplate.
