Create Empty .NET 6 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:
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
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 6 Web App to your current directory, mix in the init gist files to your current directory:
x mix init
To create an empty Single Project Template solution use the empty template:
x new empty ProjectName
To create an empty 4 Project solution that adopts ServiceStack's recommended project structure, use the web template:
x new 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:
x mix init-fsharp
Empty VB .NET Template​
And init-vb to create an empty VB .NET Web App:
x mix 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 6.0 | .NET Framework | ASP .NET Core on FX | Empty Project Templates |
---|---|---|---|
web | web-netfx | web-corefx |
Empty Web Template |
selfhost | selfhost-netfx | selfhost-corefx |
Empty SelfHost Console Template |
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.