AspNetStatic
ASP.NET Core library that generates static HTML files from the routes of an ASP.NET Core app.
AspNetStatic is a NuGet package that generates static HTML files from the routes of an ASP.NET Core app. It is added with dotnet add package AspNetStatic, and the routes to generate are listed in an IStaticResourcesInfoProvider registered in the app’s dependency injection container.
The package has two modes. In standalone generation the app writes the static files, which are then copied to a web host. In partial static site mode the app keeps running, serves the generated files for the static routes, and serves other routes dynamically. The package is built on ASP.NET Core, and its README says it works with Razor Pages, MVC and Blazor SSR.
Worth knowing
Routes for static content must not sit behind authentication or anything else that needs user interaction. Blazor pages have to finish rendering on the server, without client-side JavaScript or WebAssembly.
Identity
- Status
- Active
- Maintainer
- Zareh DerGevorkian3
- Maintained by
- Individual4
- First release
- 20237
Rendering and deploy
- Runs as
- Static files, Always on2
- Rendering
- Static output, On a server2
- Install with
- dotnet add package2
Releases
Adoption
Sources
- 2026-10-23: links, Written in, License, GitHub stars
api.github.com/repos/ZarehD/AspNetStatic - 2026-10-23: links, Categories, Install with, Rendering, Runs as
github.com/ZarehD/AspNetStatic/blob/master/Readme.md - 2026-10-23: Maintainer
github.com/ZarehD/AspNetStatic/blob/master/Notices.md - 2026-10-23: Maintained by
api.github.com/users/ZarehD - 2026-10-23: Runtime, Minimum runtime
api.nuget.org/v3-flatcontainer/aspnetstatic/0.27.8/aspnetstatic.nuspec - 2026-10-23: License model
raw.githubusercontent.com/ZarehD/AspNetStatic/master/LICENSE - 2026-10-23: First release, Current major version, Last release
api.github.com/repos/ZarehD/AspNetStatic/releases?per_page=100 - 2026-10-23: Contributors
api.github.com/repos/ZarehD/AspNetStatic/contributors