StackNucleus provides modular building blocks for Domain-Driven Design (DDD) in .NET — including core patterns like entities, aggregates, repositories, and domain services. It's designed to streamline the development of enterprise-grade applications by providing reusable, composable components grounded in tactical DDD.
Whether you're building a greenfield system or refactoring a legacy monolith, StackNucleus helps enforce consistency and clarity across your domain model.
- Entity and AggregateRoot base types with domain event support
- Repository abstractions for persistence decoupling
- Domain service scaffolding for encapsulating business logic
- Rich support for validation and value object modeling
- Minimal dependencies, works with any persistence provider
Follow these steps to create, version, and deploy your NuGet package for StackNucleus projects:
-
Add your code changes
Make all necessary code updates or feature additions in your local branch. -
Increase the NuGet version
Update the version number inside theDirectory.Build.props
file to reflect your new release. -
Update the changelog
Add a version description to theCHANGELOG.md
file under each NuGet project, documenting your changes. -
(Optional) Update the README
Modify theREADME.md
under each NuGet project if you want to update usage instructions or examples. -
Create a pull request
Push your changes and create a pull request targeting themaster
branch. -
Merge and tag
After your PR is merged tomaster
, create a Git tag on GitHub corresponding to the new NuGet package version (e.g.,v1.2.3
). -
Wait for deployment
The CI/CD pipeline will automatically build and deploy the package to the NuGet feed. Wait until the package is available on nuget.org. -
Update the NuGet API key (every 3 months)
For security, update the NuGet API key periodically (once every three months) in your CI/CD environment to maintain deployment access.