AspNetCore.Docs/aspnetcore/includes/worker-template-instruction...

694 B

Visual Studio

  1. Create a new project.
  2. Select Worker Service. Select Next.
  3. Provide a project name in the Project name field or accept the default project name. Select Next.
  4. In the Additional information dialog, Choose a Framework. Select Create.

.NET 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