# AspNetStatic

ASP.NET Core library that generates static HTML files from the routes of an ASP.NET Core app.


Source: https://findsoftware.frbit.cloud/aspnetstatic/
Last reviewed: 2026-10-23
Listed since: 2026-10-23

## Record

### Links

- repository: https://github.com/ZarehD/AspNetStatic
- docs: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md

### Identity

- status: active
- maintainer: Zareh DerGevorkian
- maintainerType: individual
- parent: unknown
- firstRelease: 2023
- hqCountry: unknown

### Kind

- category: ssg
- hosting: dotnet, static
- language: csharp
- runtime: dotnet
- runtimeMin: dotnet 8
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: static, always-on
- renderingModes: static, server
- installMethod: dotnet add package

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-04-29

### Adoption

- githubStargazers: 171
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 3
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/ZarehD/AspNetStatic (read 2026-10-23)
- urls: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- maintainer: https://github.com/ZarehD/AspNetStatic/blob/master/Notices.md (read 2026-10-23)
- maintainerType: https://api.github.com/users/ZarehD (read 2026-10-23)
- language: https://api.github.com/repos/ZarehD/AspNetStatic (read 2026-10-23)
- runtime: https://api.nuget.org/v3-flatcontainer/aspnetstatic/0.27.8/aspnetstatic.nuspec (read 2026-10-23)
- runtimeMin: https://api.nuget.org/v3-flatcontainer/aspnetstatic/0.27.8/aspnetstatic.nuspec (read 2026-10-23)
- category: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- installMethod: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- renderingModes: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- renderingModes: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- runsAs: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- runsAs: https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md (read 2026-10-23)
- license: https://api.github.com/repos/ZarehD/AspNetStatic (read 2026-10-23)
- licenseModel: https://raw.githubusercontent.com/ZarehD/AspNetStatic/master/LICENSE (read 2026-10-23)
- firstRelease: https://api.github.com/repos/ZarehD/AspNetStatic/releases?per_page=100 (read 2026-10-23)
- currentMajor: https://api.github.com/repos/ZarehD/AspNetStatic/releases?per_page=100 (read 2026-10-23)
- latestReleaseDate: https://api.github.com/repos/ZarehD/AspNetStatic/releases?per_page=100 (read 2026-10-23)
- githubStargazers: https://api.github.com/repos/ZarehD/AspNetStatic (read 2026-10-23)
- contributors: https://api.github.com/repos/ZarehD/AspNetStatic/contributors (read 2026-10-23)

## Notes

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](https://github.com/ZarehD/AspNetStatic/blob/master/Readme.md) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
