CodeDesignPlus.Net.Library
1.2.0
dotnet add package CodeDesignPlus.Net.Library --version 1.2.0
NuGet\Install-Package CodeDesignPlus.Net.Library -Version 1.2.0
<PackageReference Include="CodeDesignPlus.Net.Library" Version="1.2.0" />
paket add CodeDesignPlus.Net.Library --version 1.2.0
#r "nuget: CodeDesignPlus.Net.Library, 1.2.0"
// Install CodeDesignPlus.Net.Library as a Cake Addin #addin nuget:?package=CodeDesignPlus.Net.Library&version=1.2.0 // Install CodeDesignPlus.Net.Library as a Cake Tool #tool nuget:?package=CodeDesignPlus.Net.Library&version=1.2.0
<br /> <p align="center"> <a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Library/README"> <img src="https://i.imgur.com/PwbGy0o.png" alt="Logo"> </a>
<h3 align="center">CodeDesignPlus.Net.Library</h3>
<p align="center">
.NET Core archetype for efficient development, unit testing, and continuous integration of NuGet libraries.
<br />
<a href="https://codedesignplus.com">
<strong>Explore the docs »</strong>
</a>
<br />
<br />
<a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Library/issues">
<img src="https://img.shields.io/github/issues/codedesignplus/CodeDesignPlus.Net.Library?color=0088ff&style=for-the-badge&logo=github" alt="codedesignplus/CodeDesignPlus.Net.Library's issues"/>
</a>
<a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Library/pulls">
<img src="https://img.shields.io/github/issues-pr/codedesignplus/CodeDesignPlus.Net.Library?color=0088ff&style=for-the-badge&logo=github" alt="codedesignplus/CodeDesignPlus.Net.Library's pull requests"/>
</a>
<br />
<br />
<img alt="sonarcloud" src="https://sonarcloud.io/images/project_badges/sonarcloud-white.svg" width="100">
<br />
<img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=alert_status" />
<img alt="Security Rating" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=security_rating"/>
<img alt="Reliability Rating" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=reliability_rating" />
<img alt="Vulnerabilities" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=vulnerabilities" />
<img alt="Bugs" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=bugs" />
<img alt="Code Smells" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=code_smells" />
<img alt="Coverage" src="https://sonarcloud.io/api/project_badges/measure?project=CodeDesignPlus.Net.Library.Key&metric=coverage" />
</p>
</p>
Table of Contents
About The Project
About Me Hello! I am an archetype designed to assist you in creating .NET Core libraries distributed as NuGet packages. I've been crafted with the best practices and common patterns in mind to make your life easier.
Key Features:
Options Pattern: I facilitate configuration and customization of your libraries using the options pattern.
Dependency Injection: I employ the mechanism of dependency injection to ensure effective decoupling and efficient service management. This not only eases testing and maintainability of your code but also promotes a modular and flexible structure.
Abstractions: With the interfaces and abstract classes I offer, you can develop decoupled and maintainable components.
Unit Tests: I include a dedicated project for unit tests, equipped with tools to validate data annotations, loggers, and more.
Node Utilities: I come packed with several Node.js utilities, like linters and Commitizen, to assist you in adhering to commit conventions.
Scripts and Dependencies:
In the package.json, I offer several handy scripts:
- Tools: Install global .NET tools like dotnet-sonarscanner.
- Installation: Restore necessary dependencies for your project.
- Tests: Execute all unit tests.
- Compilation: Compile your solution.
- Formatting: Format your code to keep it neat and consistent.
- Preparation: Set up husky, a tool to manage git hooks.
Furthermore, I integrate various dependencies and devDependencies to streamline version control
, linting
, and commit management
, such as commitizen
, husky
, and lint-staged
.
Built With
Efficient and maintainable software creation not only demands coding skills but also the right tools that fit our needs and streamline our workflow. The tools and technologies we employ often mirror our priorities in terms of efficiency, security, collaboration, and other pivotal aspects of software development. Below are the cornerstone tools and technologies that underpin this archetype:
- .NET SDK 7.0: The necessary SDK for building applications in .NET Core 7.0.
- Node.js: A JavaScript runtime environment that enables server-side application development.
- Visual Studio Community 2022: A comprehensive IDE tailored for .NET development.
- VS Code: A lightweight yet powerful code editor with extensive extensibility capabilities.
This archetype comes with a preconfigured continuous integration pipeline, streamlining the automation of crucial tasks such as testing, building, packaging, and deployment. Thanks to this pipeline:
- Full Automation: Tests and builds are automatically run with each push, ensuring the code meets quality standards.
- Semantic Versioning Control: Using codedesignplus/semver-git-version, versions are automatically generated based on commits, ensuring coherent and predictable version management.
- Code Quality: With integrated SonarQube, the code is analyzed for quality and security issues.
- Automatic Publishing: Packages are automatically published to NuGet and GitHub Package Registry under certain conditions, making distribution straightforward.
- Change Management: With tools like mikepenz/release-changelog-builder-action, a changelog is automatically created for each new version.
Beyond the continuous integration pipeline, this archetype brings several benefits that enhance and standardize the development and collaboration process:
- Predefined Issue Templates: They simplify the creation of bug reports, new feature requests, security reports, and more, ensuring all necessary information is provided in a structured manner when creating a new issue.
- Standardized Contribution: The CONTRIBUTING.md file offers clear guidelines for those wishing to contribute to the project.
- Code of Conduct: CODE_OF_CONDUCT.md sets the norms to ensure a respectful and productive collaboration environment.
- Code Owners: The CODEOWNERS file outlines those responsible for reviewing and approving changes.
- Pull Request Template: Every new pull request will follow a defined structure, simplifying the review process.
- Security Guidelines: SECURITY.md provides guidelines for reporting security vulnerabilities.
- Bot Configuration: With files like issue_label_bot.yaml, tasks like auto-labeling issues based on their content can be automated.
- License: LICENSE.md details how others can use or contribute to the project.
Getting Started
To dive into this archetype and set up your development environment, follow these steps:
For Visual Studio Community 2022:
- Open the .sln file with Visual Studio Community 2022.
- Select
Build > Restore NuGet Packages
from the menu to restore dependencies. - Compile the project by selecting
Build > Build Solution
. - Run the unit tests by selecting
Test > Run All Tests
. - To package, right-click on the project you wish to package and select Pack.
For VS Code:
Open the project folder in VS Code.
Launch the integrated terminal (Ctrl + ~).
Install the Recommended Extensions:
code --install-extension amazonwebservices.aws-toolkit-vscode code --install-extension dbaeumer.vscode-eslint code --install-extension eamodio.gitlens code --install-extension esbenp.prettier-vscode code --install-extension github.vscode-github-actions code --install-extension ms-azuretools.vscode-docker code --install-extension ms-dotnettools.csharp code --install-extension ms-dotnettools.vscode-dotnet-runtime code --install-extension ms-vscode-remote.remote-containers code --install-extension ms-vscode-remote.remote-wsl code --install-extension ms-vscode.cpptools code --install-extension ms-vscode.cpptools-extension-pack code --install-extension ms-vscode.cpptools-themes code --install-extension nrwl.angular-console code --install-extension PKief.material-icon-theme code --install-extension SonarSource.sonarlint-vscode code --install-extension Tyriar.lorem-ipsum code --install-extension vivaxy.vscode-conventional-commits
Build and Management Procedures:
dotnet tool install --global dotnet-sonarscanner dotnet restore dotnet build dotnet test dotnet format npm install npm run prepare dotnet pack -c Release /p:Version=1.0.0 # Ensure to set the appropriate version
Recommended Extensions for VS Code: These extensions enrich the development experience within VS Code:
- AWS Toolkit
- ESLint
- GitLens
- Prettier
- GitHub Actions
- Docker
- C#
- .NET Runtime
- Remote Development (for containers, WSL, etc.)
- CMake Tools & Extensions
- Angular Console
- Material Icon Theme
- SonarLint
- Lorem Ipsum
- Conventional Commits
Usage
For more information regarding the library, you can visit our documentation at <a target="_blank" href="https://codedesignplus.com">CodeDesignPlus Doc</a>
Roadmap
Refer to issues for a list of proposed features and known issues.
Contributing
- Fork the Project
- Create your Feature Branch (
git checkout -b features/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
CodeDesignPlus - @CodeDesignPlus - codedesignplus@outlook.com
Project Link: CodeDesignPlus.Net.Library
Acknowledgements
We want to thank each member of the Latin development community in which we participate, contributing content daily to continue growing together.
- Asp.Net Core en Español
- Asp.Net Core
- Asp.net Core -MVC Group
- Asp.Net MVC (Español)
- .Net Core
- .NET En Español PROGRAMADORES
- ASP.Net Core/C#/MVC/API/Jquery/Html/Sql/Angular/Bootstrap.
- .NET en Español
- Blazor - ASP.NET Core
- C# (.NET)
- ASP.NET MVC(C#)
- Programación C# .Net Peru
- ASP.NET and ASP.NET Core
- ASP.NET AND .NET CORE
- C#, MVC & .NET CORE 3.1
- .NET Core Community
- Desarrolladores .Net, C#, React
- Programadores C#
- .NET Core
- ASP.NET EN ESPAÑOL
- Desarrolladores Microsoft.Net
- ASP.NET Core
- Grupo de Desarrolladores .Net de Microsoft
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- CodeDesignPlus.Net.Library.Abstractions (>= 1.2.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.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 |
---|---|---|
1.2.0 | 137 | 2/9/2024 |
1.2.0-rc.2 | 58 | 2/9/2024 |
1.2.0-beta.2 | 59 | 2/9/2024 |
1.1.1 | 149 | 10/8/2023 |
1.1.1-rc.1 | 76 | 10/8/2023 |
1.1.1-beta.1 | 70 | 10/8/2023 |
1.1.0 | 112 | 9/19/2023 |
1.1.0-rc.11 | 57 | 9/19/2023 |
1.1.0-beta.11 | 63 | 9/19/2023 |
1.0.1-rc.0 | 79 | 9/19/2023 |
1.0.1-beta.0 | 73 | 9/19/2023 |
1.0.1-alpha.8 | 71 | 9/19/2023 |
1.0.1-alpha.7 | 59 | 9/19/2023 |
1.0.1-alpha.6 | 63 | 9/19/2023 |
1.0.1-alpha.5 | 64 | 9/19/2023 |
1.0.1-alpha.4 | 64 | 9/19/2023 |
1.0.0-alpha32 | 167 | 8/2/2023 |
1.0.0-alpha30 | 114 | 8/2/2023 |
1.0.0-alpha3 | 106 | 8/2/2023 |
1.0.0-alpha28 | 116 | 8/2/2023 |
1.0.0-alpha27 | 112 | 8/2/2023 |
1.0.0-alpha26 | 100 | 8/2/2023 |
1.0.0-alpha25 | 118 | 8/2/2023 |
1.0.0-alpha24 | 119 | 8/2/2023 |
1.0.0-alpha23 | 112 | 8/2/2023 |
1.0.0-alpha21 | 125 | 8/2/2023 |
1.0.0-alpha20 | 126 | 8/2/2023 |
1.0.0-alpha2 | 116 | 8/2/2023 |
1.0.0-alpha1 | 138 | 8/2/2023 |
0.1.0 | 129 | 8/24/2023 |
0.1.0-rc-62 | 109 | 8/24/2023 |
0.1.0-rc-27 | 107 | 8/3/2023 |
0.1.0-rc-17 | 113 | 8/3/2023 |
0.1.0-beta-61 | 99 | 8/24/2023 |
0.1.0-beta-53 | 105 | 8/24/2023 |
0.1.0-beta-45 | 102 | 8/24/2023 |
0.1.0-beta-43 | 93 | 8/24/2023 |
0.1.0-beta-25 | 116 | 8/3/2023 |
0.1.0-beta-16 | 108 | 8/3/2023 |
0.1.0-alpha-7 | 109 | 8/25/2023 |
0.1.0-alpha-64 | 108 | 8/3/2023 |
0.1.0-alpha-56 | 104 | 8/3/2023 |
0.1.0-alpha-55 | 105 | 8/3/2023 |
0.1.0-alpha-54 | 124 | 8/3/2023 |
0.1.0-alpha-50 | 99 | 8/24/2023 |
0.1.0-alpha-5 | 99 | 8/25/2023 |
0.1.0-alpha-48 | 110 | 8/3/2023 |
0.1.0-alpha-47 | 104 | 8/3/2023 |
0.1.0-alpha-46 | 123 | 8/3/2023 |
0.1.0-alpha-45 | 109 | 8/3/2023 |
0.1.0-alpha-44 | 106 | 8/3/2023 |
0.1.0-alpha-43 | 103 | 8/24/2023 |
0.1.0-alpha-42 | 94 | 8/24/2023 |
0.1.0-alpha-40 | 113 | 8/24/2023 |
0.1.0-alpha-39 | 87 | 8/24/2023 |
0.1.0-alpha-38 | 89 | 8/24/2023 |
0.1.0-alpha-37 | 103 | 8/24/2023 |
0.1.0-alpha-36 | 99 | 8/24/2023 |
0.1.0-alpha-35 | 96 | 8/24/2023 |
0.1.0-alpha-3 | 97 | 8/25/2023 |
0.1.0-alpha-2 | 104 | 8/25/2023 |
0.1.0-alpha-15 | 110 | 8/3/2023 |
0.0.1-alpha-8 | 101 | 8/25/2023 |
0.0.0-alpha-0 | 99 | 8/3/2023 |