Worker.Extended 1.0.1

dotnet new install Worker.Extended::1.0.1                
This package contains a .NET Template Package you can call from the shell/command line.

Creates a Worker Project (.Net Core 3.0) with additional features.
Some required changes after creating a new worker project are pre-created with this project template.
Configured for logging with Serilog.

Included Project Types

Worker Service (Extended)
Worker Service (Extended) Class

Usage

dotnet new workerextended -n NewWorkerApp
cd NewWorkerApp/
dotnet run
// Hit 'CTRL+C' to exit

dotnet new workerextended-service -n Worker2
// Update Program.cs ->
...
.ConfigureServices((hostContext, services) =>
{
    ...
    services.AddHostedService<Worker2>();
});

dotnet run
// Hit 'CTRL+C' to exit

Build

Install "Worker Service (Extended)" from source code

dotnet new -i ./Company.Application1

Install "Worker Service (Extended) Class" from source code

dotnet new -i ./extendedWorkerClass

Create Nuget Package

dotnet pack
// To install from .nupkg file
dotnet new -i bin/Debug/Worker.Extended.1.0.0.nupkg

References:
https://github.com/aspnet/AspNetCore/tree/master/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp
https://github.com/dotnet/templating/wiki/%22Runnable-Project%22-Templates
https://devblogs.microsoft.com/dotnet/how-to-create-your-own-templates-for-dotnet-new/
https://github.com/sayedihashimi/dotnet-new-samples
https://github.com/dotnet/dotnet-template-samples

  • .NETCoreApp 3.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 2,523 10/13/2019