Skip to content

ServiceStack/docs.servicestack.net

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

razor-ssg

.NET 6.0 razor-ssg Static Generated Razor Pages Project Template

Browse source code, view live demo razor-ssg.web-templates.io and install with dotnet-new:

$ dotnet tool install -g x

$ x new razor-ssg ProjectName

Alternatively write new project files directly into an razor-ssg repository, using the Directory Name as the ProjectName:

$ git clone https://github.com/<User>/<ProjectName>.git
$ cd <ProjectName>
$ x new razor-ssg

Documentation

Documentation for this template is included at /posts/razor-ssg.

Development Tasks

Tasks to run live reload Tailwind and .NET Razor Pages App during development:

Run Tailwind in Background

$ npm run ui:dev

Run .NET App with Live Reload

$ dotnet watch

Local Production Tasks

Tasks to prerender and preview production ssg website build:

Prerender website

$ npm run prerender

Preview pre-rendered website

$ npm run serve