ProjectBasics 1.2.0
dotnet add package ProjectBasics --version 1.2.0
NuGet\Install-Package ProjectBasics -Version 1.2.0
<PackageReference Include="ProjectBasics" Version="1.2.0" />
<PackageVersion Include="ProjectBasics" Version="1.2.0" />
<PackageReference Include="ProjectBasics" />
paket add ProjectBasics --version 1.2.0
#r "nuget: ProjectBasics, 1.2.0"
#:package ProjectBasics@1.2.0
#addin nuget:?package=ProjectBasics&version=1.2.0
#tool nuget:?package=ProjectBasics&version=1.2.0
Project.Basics
A shared infrastructure package for common cross-project concerns such as logging, error handling, validation, and mapping.
📦 Installation
dotnet add package Project.Basics
🎯 Purpose
Project.Basics centralizes reusable foundational components used across multiple projects, helping you:
- Reduce duplicate code
- Standardize architecture patterns
- Improve maintainability
- Enforce consistent conventions
⚙️ Target Framework
.NET 10
🚀 Features
- ✔ Centralized Logging utilities
- ✔ Standardized Error Handling components
- ✔ Validation helpers
- ✔ Object Mapping helpers
- ✔ Shared infrastructure utilities
- ✔ Designed for multi-project solutions
- ✔ Built-in Dependency Injection setup
- ✔ Middleware integration support
🧩 Quick Start
1️⃣ Register Services
builder.Services.ConfigureProjectBasicsServices(builder.Host, builder.Configuration);
2️⃣ Use Middleware
app.UseProjectBasicsApplicationBuilder();
💡 Usage Examples
Logging
_logger.LogInfo("Application started");
Validation
Validator.EnsureNotNull(user, nameof(user));
Mapping
var dto = Mapper.Map<UserDto>(user);
🏗 Recommended Use Cases
Best suited for:
- Microservice architectures
- Modular monoliths
- Enterprise systems
- Multi-solution environments
- Clean Architecture projects
📐 Design Principles
Project.Basics is built with:
- Minimal dependencies
- High performance
- Extensibility-first architecture
- Clean Architecture compatibility
- Consistent cross-project standards
🔐 Error Handling Strategy
The package provides unified error handling mechanisms that:
- Normalize exception responses
- Prevent information leakage
- Standardize error formats
- Improve observability
- Centralize logging for failures
📜 License
Licensed under the MIT License.
🤝 Contributing
Contributions, suggestions, and improvements are welcome. Please open an issue or submit a pull request.
⭐ Why Project.Basics?
Instead of rewriting infrastructure utilities for every project, Project.Basics gives you a stable, reusable foundation so you can focus entirely on business logic.
Built for scalable, maintainable, production-grade .NET systems
| 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
- Infrastructure.ExceptionHandler (>= 1.0.0)
- Infrastructure.FaultHandler (>= 1.0.0)
- Infrastructure.Logging (>= 1.0.0)
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 |
|---|