1.0 KiB
1.0 KiB
Visual Studio
- Create a new project.
- Select Worker Service. Select Next.
- Provide a project name in the Project name field or accept the default project name. Select Create.
- In the Create a new Worker service dialog, select Create.
Visual Studio for Mac
- Create a new project.
- Select App under .NET Core in the sidebar.
- Select Worker under ASP.NET Core. Select Next.
- Select .NET Core 3.0 or later for the Target Framework. Select Next.
- Provide a name in the Project Name field. Select Create.
.NET Core CLI
Use the Worker Service (worker
) template with the dotnet new command from a command shell. In the following example, a Worker Service app is created named ContosoWorker
. A folder for the ContosoWorker
app is created automatically when the command is executed.
dotnet new worker -o ContosoWorker