Empty Project Templates

Create Empty .NET 10 Web Apps

If you don't have the x dotnet tool installed, the quickest way to create a ServiceStack App is to download your preferred template from:

Empty Projects

There are a few different ways you can create empty ServiceStack projects ordered by their level of emptiness.

To write a minimal .NET 10 Web App to your current directory, mix in the init gist files to your current directory:

npx add-in init

To create an empty Single Project Template solution use the empty template:

npx create-net empty ProjectName

To create an empty 4 Project solution that adopts ServiceStack's recommended project structure, use the web template:

npx create-net web ProjectName

INFO

You can omit the ProjectName in all above examples to use the Directory Name as the Project Name

Empty F# Template

Like C# init there's also init-fsharp gist to create an empty F# Web App:

npx add-in init-fsharp

Empty VB .NET Template

And init-vb to create an empty VB .NET Web App:

npx add-in init-vb

Empty ASP .NET Core and .NET Framework Templates

The templates below follow our recommended physical project layout where web is our recommended empty starting project for Web Apps whilst selfhost is an empty project with the minimum dependencies.

.NET 10.0 .NET Framework Empty Project Templates
web web-netfx

Empty Web Template

web.web-templates.io

Windows Service Template

You can use winservice-netfx to create a Windows Service but as this requires Visual Studio it's faster to continue creating new Windows Service projects within VS.NET using the ServiceStack Windows Service Empty Project Template.