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

1.2 KiB

no-loc
Home
Privacy
Kestrel
appsettings.json
ASP.NET Core Identity
cookie
Cookie
Blazor
Blazor Server
Blazor WebAssembly
Identity
Let's Encrypt
Razor
SignalR

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 Create.
  4. In the Create a new Worker service dialog, select Create.

Visual Studio for Mac

  1. Create a new project.
  2. Select App under .NET Core in the sidebar.
  3. Select Worker under ASP.NET Core. Select Next.
  4. Select .NET Core 3.0 or later for the Target Framework. Select Next.
  5. 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