This repository contains a collection of reusable .NET libraries and demo projects developed by Khujrat S Shaikh.
Each solution demonstrates a specific software principle, design pattern, or utility that can be used to accelerate .NET application development.
| Project / Library | Description |
|---|---|
| ConfigLibrary | Centralised configuration management for .NET apps with environment‑based overrides and encryption support. |
| DesignPatternsDemo | Practical demonstrations of popular software design patterns implemented in C#. |
| MyIpAddress | Library to easily fetch internal and external IP addresses in C# projects. |
| myLogger | Lightweight, extensible logging utility with file and console output support. |
| MyLogicalLibrary | A set of core logical utilities for .NET developers — reusable helper methods and extensions. |
| MySqlOptimizer | Optimised MySQL data‑access library supporting async operations, transactions, and stored procedures. |
| OtpGenerator | Simple and secure OTP (One‑Time Password) generator for authentication workflows. |
| SolidPrinciplesDemo | Demonstrations of the SOLID principles in object‑oriented programming using C#. |
- 🏗 Modular Libraries — Each library can be independently used as a NuGet package.
- ⚡ Optimised Performance — Written in modern C# with async support where possible.
- 🧠 Educational Demos — Design & SOLID principle examples for learning and reference.
- 🔒 Secure Coding Practices — Focused on parameterised queries, safe logging, and configuration management.
You can explore and install these packages via NuGet .org:
| Package | Description | NuGet Link |
|---|---|---|
| MySqlOptimizer | Simplifies database operations with MySQL. | NuGet ↗ |
| OtpGenerator | Lightweight OTP generation library. | NuGet ↗ |
| myLogger | Simple structured logging solution. | NuGet ↗ |
| MyLogicalLibrary | Common logic helpers for .NET apps. | NuGet ↗ |
| (and more...) | Check out all published packages on your NuGet profile. |
- Clone the repository:
git clone https://github.com/khujrat17/nuget.git
- Open the desired
.slnfile (for exampleSolidPrinciplesDemo.slnor others) in Visual Studio or Rider. - Build the solution:
dotnet build
- (If present) Run unit tests:
dotnet test
- 🔄 Add CI/CD for automatic NuGet publishing via GitHub Actions.
- 🧪 Include more test coverage for edge cases.
- 🌐 Provide online documentation for each library.
- 🎨 Add sample applications (e.g., ASP.NET Core / Blazor) using these libraries.
Khujrat S Shaikh
📦 NuGet Profile
💻 GitHub
This project is licensed under the MIT License — feel free to use it in commercial or personal projects.
⭐ If you find these libraries useful, please give the repo a star and share your feedback!