Easy.Net.Starter
10.0.11
dotnet add package Easy.Net.Starter --version 10.0.11
NuGet\Install-Package Easy.Net.Starter -Version 10.0.11
<PackageReference Include="Easy.Net.Starter" Version="10.0.11" />
<PackageVersion Include="Easy.Net.Starter" Version="10.0.11" />
<PackageReference Include="Easy.Net.Starter" />
paket add Easy.Net.Starter --version 10.0.11
#r "nuget: Easy.Net.Starter, 10.0.11"
#:package Easy.Net.Starter@10.0.11
#addin nuget:?package=Easy.Net.Starter&version=10.0.11
#tool nuget:?package=Easy.Net.Starter&version=10.0.11
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
Logging with Serilog:
Automatically logs to the console or files.Settings management:
Loads settings fromappsettings.jsonand exposes them via DI.PostgreSQL support:
Easily add an Entity Framework context with default configuration.API Ready:
Enable API capabilities (Swagger, controllers, health endpoints) with a single line.CORS:
Simplified configuration for allowed origins, methods, and headers.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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- BCrypt.Net-Next (>= 4.2.0)
- Easy.Net.Common (>= 10.0.4)
- EFCore.NamingConventions (>= 10.0.1)
- Exceptionless (>= 6.2.0)
- Exceptionless.AspNetCore (>= 6.2.0)
- LanguageExt.Core (>= 4.4.9)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.9)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 10.0.9)
- Microsoft.AspNetCore.SignalR.Common (>= 10.0.9)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.9)
- Microsoft.Extensions.Configuration (>= 10.0.9)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Identity.Abstractions (>= 12.4.0)
- Microsoft.Identity.Web (>= 4.13.0)
- Microsoft.Identity.Web.DownstreamApi (>= 4.13.0)
- Microsoft.Identity.Web.MicrosoftGraph (>= 4.13.0)
- Newtonsoft.Json (>= 13.0.4)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
- Serilog (>= 4.4.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Formatting.Compact (>= 3.0.0)
- Serilog.Settings.Configuration (>= 10.0.1)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.Debug (>= 3.0.0)
- Serilog.Sinks.Exceptionless (>= 5.0.0)
- Serilog.Sinks.File (>= 7.0.0)
- Spectre.Console (>= 0.57.2)
- Swashbuckle.AspNetCore (>= 10.2.3)
- VaultSharp (>= 1.17.5.1)
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 |
|---|---|---|
| 10.0.11 | 162 | 7/10/2026 |
| 10.0.9 | 113 | 7/7/2026 |
| 10.0.8 | 115 | 6/28/2026 |
| 10.0.7 | 127 | 6/28/2026 |
| 10.0.6 | 116 | 6/24/2026 |
| 10.0.5 | 165 | 1/25/2026 |
| 10.0.2 | 156 | 1/19/2026 |
| 10.0.1 | 137 | 1/19/2026 |
| 10.0.0 | 81 | 1/19/2026 |
| 9.6.4 | 191 | 5/10/2025 |
| 9.6.3 | 171 | 5/10/2025 |
| 9.6.2 | 299 | 4/23/2025 |
| 9.6.1 | 292 | 4/23/2025 |
| 9.6.0 | 290 | 4/23/2025 |
| 9.4.22 | 258 | 3/31/2025 |
| 9.4.21 | 251 | 3/31/2025 |
| 9.4.20 | 270 | 3/31/2025 |
| 9.4.19 | 242 | 3/30/2025 |
| 9.4.18 | 260 | 3/30/2025 |
| 9.4.17 | 252 | 3/30/2025 |