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.
What is TerevintoSoftware.StaticSiteGenerator?
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.
Key Features
- View conversion — Converts ASP.NET Core MVC Views into static HTML files, so you keep the Razor syntax.
- Partials and Layouts — Supports the same Partial and Layout structures you use in MVC, letting you reuse components across pages.
- No Models needed — Because Views are rendered to static files, Model binding is not available yet.
- Upgrade path — Start with a static site and later migrate to a full ASP.NET Core dynamic website without a rewrite.
- Sample blog template — A GitHub repository (CamiloTerevinto/StaticBlogTemplate) demonstrates building a blog with the tool.
- Open source — Released under the MIT license with an issue tracker for bug reports and feature requests.
- Published on NuGet — Available as the TerevintoSoftware.StaticSiteGenerator package.
Who should use TerevintoSoftware.StaticSiteGenerator?
- C# developers who want to publish a site to cheap static hosting without leaving the ASP.NET Core ecosystem.
- ASP.NET MVC teams that need a fast static prototype or landing page that can later become fully dynamic.
- Blog authors who want to use Razor views and layouts to generate a static blog, using the provided sample template as a starting point.
Use cases
- Indie developers: generate a personal or project site from MVC views and host it free on GitHub Pages or Netlify.
- Consulting agencies: deliver static marketing pages built with the same MVC layout system used in client projects.
- Technical writers: build documentation sites from Razor partials and layouts without running a server at runtime.
How does TerevintoSoftware.StaticSiteGenerator work?
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.
FAQ
Is TerevintoSoftware.StaticSiteGenerator free?
Yes, the project is open source under the MIT license, so you can use, modify, and distribute it freely, including in commercial projects.
Can I use Models with this generator?
Not yet. The README states that because the tool converts Views into HTML files, using Models is not possible at this time.
What do I need to build the tool from source?
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.
Where can I see a real example?
The official website at staticsitegenerator.net lists features, and there is a sample blog repository at github.com/CamiloTerevinto/StaticBlogTemplate.








