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:
Alternatively if you're creating multiple projects we recommend installing the x dotnet tool which can create every project template:
dotnet tool install --global x
There are a few different ways you can create empty ServiceStack projects ordered by their level of emptiness.
x mix init
To create an empty Single Project Template solution use the empty template:
x new empty ProjectName
x new web ProjectName
You can omit the ProjectName in all above examples to use the Directory Name as the Project Name
Like C# init there's also init-fsharp gist to create an empty F# Web App:
x mix init-fsharp
And init-vb to create an empty VB .NET Web App:
x mix init-vb
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 6.0||.NET Framework||ASP .NET Core on FX||Empty Project Templates|
Empty Web Template
Empty SelfHost Console 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.