Easy.Net.Starter 9.6.4

dotnet add package Easy.Net.Starter --version 9.6.4
                    
NuGet\Install-Package Easy.Net.Starter -Version 9.6.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Easy.Net.Starter" Version="9.6.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Net.Starter" Version="9.6.4" />
                    
Directory.Packages.props
<PackageReference Include="Easy.Net.Starter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Easy.Net.Starter --version 9.6.4
                    
#r "nuget: Easy.Net.Starter, 9.6.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Easy.Net.Starter@9.6.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Easy.Net.Starter&version=9.6.4
                    
Install as a Cake Addin
#tool nuget:?package=Easy.Net.Starter&version=9.6.4
                    
Install as a Cake Tool

Easy.Net.Starter

Easy.Net.Starter is a .NET library designed to accelerate the setup of Console or API projects. It provides a ready-to-use configuration with:

  • Integrated logging using Serilog.
  • Centralized management of settings (appsettings.json) for different environments.
  • Automatic setup of Dependency Injection (DI).
  • Database support (PostgreSQL with SnakeCase conventions).
  • Quick configuration for CORS, middlewares, and API capabilities (Swagger, health checks, etc.).

Key Features

  1. Logging with Serilog:
    Automatically logs to the console or files.

  2. Settings management:
    Loads settings from appsettings.json and exposes them via DI.

  3. PostgreSQL support:
    Easily add an Entity Framework context with default configuration.

  4. API Ready:
    Enable API capabilities (Swagger, controllers, health endpoints) with a single line.

  5. CORS:
    Simplified configuration for allowed origins, methods, and headers.

  6. Middleware management:
    Dynamically add custom middlewares using reflection.


Installation

Add Easy.Net.Starter to your project via NuGet:

dotnet add package Easy.Net.Starter

Usage Examples

Initializing an API

using Easy.Net.Starter.Api;
using Easy.Net.Starter.App;
using Easy.Net.Starter.ProgramsEntries;

var startupOptions = new StartupBuilder()
    .AddScoped<ITestServiceWithInterface, TestServiceWithInterface>()
    .AddHttpLoggerMiddleware()
    .Build();

var app = WebApiStarter.Start<CustomAppSettings>(args, startupOptions);

app.Run();

Initializing with a Database

using Easy.Net.Starter.Api;
using Easy.Net.Starter.App;
using Easy.Net.Starter.ProgramsEntries;

var startupOptions = new StartupBuilder()
    .AddDatabase<MyDatabaseContext>()
    .AddScoped<ITestServiceWithInterface, TestServiceWithInterface>()
    .AddHttpLoggerMiddleware()
    .Build();

var app = WebApiStarter.Start<CustomAppSettings>(args, startupOptions);

app.Run();

Contribution

Contributions are welcome! If you’d like to suggest an improvement or report a bug, please open an issue or submit a Pull Request.


License

This project is licensed under the MIT.


Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.6.4 81 5/10/2025
9.6.3 75 5/10/2025
9.6.2 202 4/23/2025
9.6.1 182 4/23/2025
9.6.0 173 4/23/2025
9.4.22 169 3/31/2025
9.4.21 161 3/31/2025
9.4.20 165 3/31/2025
9.4.19 148 3/30/2025
9.4.18 144 3/30/2025
9.4.17 147 3/30/2025
9.4.16 150 3/30/2025
9.4.15 141 3/30/2025
9.4.14 148 3/30/2025
9.4.13 150 3/30/2025
9.4.12 149 3/30/2025
9.4.11 155 3/30/2025
9.4.10 143 3/30/2025
9.4.9 147 3/30/2025
9.4.8 159 3/30/2025
9.4.7 152 3/30/2025
9.4.6 95 3/29/2025
9.4.5 101 3/29/2025
9.4.4 105 3/29/2025
9.4.3 99 3/29/2025
9.4.1 100 3/29/2025
9.4.0 99 3/29/2025
9.3.4 133 3/26/2025
9.3.3 141 3/26/2025
9.3.2 141 3/26/2025
9.3.1 143 3/26/2025
9.3.0 141 3/26/2025
9.2.18 482 3/25/2025
9.2.17 123 2/23/2025
9.2.16 115 2/22/2025
9.2.15 107 2/22/2025
9.2.14 118 2/19/2025
9.2.13 116 2/19/2025
9.2.12 113 2/16/2025
9.2.11 119 2/16/2025
9.2.10 115 2/15/2025
9.2.9 113 2/14/2025
9.2.8 104 2/14/2025
9.2.7 116 2/14/2025
9.2.6 109 2/14/2025
9.2.5 113 2/14/2025
9.2.4 116 2/14/2025
9.2.3 116 2/13/2025
9.2.2 113 2/13/2025
9.2.1 114 2/13/2025
9.2.0 111 2/13/2025
9.1.8 119 2/13/2025
9.1.7 127 2/9/2025
9.1.6 114 2/9/2025
9.1.5 126 2/9/2025
9.1.4 127 2/1/2025
9.1.3 111 2/1/2025
9.1.2 117 2/1/2025
9.1.1 111 2/1/2025
9.1.0 117 2/1/2025
9.0.34 108 1/6/2025
9.0.33 141 1/3/2025
9.0.32 131 1/3/2025
9.0.31 142 1/3/2025
9.0.30 136 1/3/2025
9.0.29 130 1/2/2025
9.0.28 130 1/2/2025
9.0.27 116 1/2/2025
9.0.26 120 1/2/2025
9.0.25 116 1/2/2025
9.0.24 116 1/2/2025
9.0.23 123 1/2/2025
9.0.22 120 1/2/2025
9.0.21 120 1/2/2025
9.0.20 112 1/2/2025
9.0.19 123 1/2/2025
9.0.18 118 1/2/2025
9.0.17 118 12/27/2024
9.0.16 109 12/27/2024
9.0.15 113 12/27/2024
9.0.14 107 12/27/2024
9.0.13 108 12/27/2024
9.0.12 101 12/27/2024
9.0.9 113 12/26/2024
9.0.8 112 12/25/2024
9.0.7 106 12/25/2024
9.0.6 116 12/25/2024
9.0.5 119 12/25/2024
9.0.4 112 12/24/2024
1.0.3 111 12/24/2024
1.0.2 108 12/24/2024
1.0.1 117 12/24/2024
1.0.0 109 12/24/2024