Skip to content

Commit 2f13162

Browse files
V0.5.12/service update (#32)
⬆️ upgrade xunit to 4.0 and other dependencies to latest compatible versions ⚙️ configure Microsoft.Testing.Platform test runner and CodeCoverage integration 📝 restructure CONTRIBUTING.md with current build, test, and CI guidance 💬 add v0.5.12 release notes and changelog entry
1 parent 5f18639 commit 2f13162

6 files changed

Lines changed: 112 additions & 58 deletions

File tree

‎.github/CONTRIBUTING.md‎

Lines changed: 65 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,79 @@
1-
# Contributing to `Shared Kernel API by Codebelt`
2-
When contributing to this repository, please first discuss the change you wish to make via issue,
3-
email, or any other method with the owners of this repository before making a change.
1+
# Contributing to Shared Kernel API by Codebelt
42

5-
Please note we have a code of conduct, please follow it in all your interactions with the project.
3+
This repository is part of the Codebelt .NET library estate. The instructions below describe the current checkout and its CI contract. Please keep changes focused and preserve the shared Codebelt build skeleton unless a deliberate policy change is being made.
64

7-
## Code of Conduct
8-
Please review our [code of conduct](CODE_OF_CONDUCT.md).
5+
## Before you start
96

10-
## Our Development Process
11-
We use `trunk` based branching model that is aligned with todays DevSecOps practices.
12-
All new features and/or fixes are merged into the `main` branch by creating a Pull Request.
7+
- Read the repository `README.md` and open an issue before starting a non-trivial feature or behavioral change.
8+
- Use an installed .NET SDK that can build the target frameworks listed below. This repository currently targets: **net10.0, net9.0**.
9+
- The solution is `Codebelt.SharedKernel.slnx`. Central package versions are maintained in `Directory.Packages.props`.
10+
- The shared build behavior is in `Directory.Build.props` and `Directory.Build.targets`; repository-specific TFMs, package references and metadata remain local to this library.
1311

14-
## Pull Requests
15-
We actively welcome your pull requests.
12+
## Repository shape
1613

17-
1. Fork the repo and create your branch from `main`
18-
2. If you've added code that should be tested, add tests (DO follow [Microsoft Engineering Guidelines](https://github.com/dotnet/aspnetcore/wiki/Engineering-guidelines))
19-
3. Any changes or additions requires documentation in the form of documenting public members
20-
4. Ensure that all existing as well as new test passes
21-
5. Issue that pull request with a big and heartful thanks for contributing
14+
- `src/` contains production projects.
15+
- `test/` contains xUnit v3 test projects.
16+
- `Codebelt.SharedKernel.slnx` is the solution used for local development.
17+
- `.github/workflows/ci-pipeline.yml` is the CI workflow and the authority for the test matrix.
18+
- `testenvironments.json` declares the supported `WSL-Ubuntu` and `Docker-Ubuntu` test environments.
2219

23-
## Issues
24-
We use GitHub issues to track public bugs. Please ensure your description is
25-
clear and has sufficient instructions to be able to reproduce the issue.
20+
## Build
21+
22+
Restore and build the solution from the repository root:
23+
24+
```powershell
25+
dotnet restore "Codebelt.SharedKernel.slnx"
26+
dotnet build "Codebelt.SharedKernel.slnx" --configuration Release --no-restore
27+
```
28+
29+
CI builds both Debug and Release configurations. A clean build should complete before opening a pull request.
30+
31+
## Test
32+
33+
Run tests one project at a time so a failing or hanging project is attributable. This mirrors the CI matrix; it does not silently turn skipped integration tests into passing tests.
34+
35+
```powershell
36+
$testProjects = Get-ChildItem test -Filter *.csproj -Recurse
37+
foreach ($project in $testProjects) {
38+
dotnet test $project.FullName --configuration Release --no-restore
39+
}
40+
```
41+
42+
The CI test plan currently runs **1** project(s) and excludes **0** project(s). The workflow also has an optional macOS test job.
43+
44+
## Integration and infrastructure
2645

27-
## Coding Guidelines
28-
* Please follow [Framework Design Guidelines](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/)
29-
* Please follow SOLID principles
30-
* Please follow [Microsoft Engineering Guidelines](https://github.com/dotnet/aspnetcore/wiki/Engineering-guidelines)
46+
- `WSL-Ubuntu` — WSL distribution `Ubuntu-24.04`.
47+
- `Docker-Ubuntu` — Docker image `codebeltnet/ubuntu-testrunner:8-9-10-11`.
3148

32-
## Manifesto
33-
As aspiring Software Craftsmen we are raising the bar of professional software development by practicing it and helping others learn the craft.
49+
This repository has no repository-local `docker-compose.yml` service dependency in the current checkout.
50+
Use the environments declared in `testenvironments.json` when you need the estate test runner.
3451

35-
Through this work we have come to value:
52+
## Package and documentation
3653

37-
* Not only working software,
38-
but also well-crafted software
39-
* Not only responding to change,
40-
but also steadily adding value
41-
* Not only individuals and interactions,
42-
but also a community of professionals
43-
* Not only customer collaboration,
44-
but also productive partnerships
54+
Create packages using the same solution and Release configuration:
4555

46-
That is, in pursuit of the items on the left we have found the items on the right to be indispensable.
56+
```powershell
57+
dotnet pack "Codebelt.SharedKernel.slnx" --configuration Release --no-restore
58+
```
4759

48-
[Manifesto for Software Craftsmanship](https://manifesto.softwarecraftsmanship.org/) is the originator of this text.
60+
Package-specific release notes live under `.nuget/<ProjectName>/PackageReleaseNotes.txt` and package README files live beside them. `Directory.Build.targets` imports the release notes during packing. Public API changes also require XML documentation updates; DocFX documentation is built by the repository automation.
61+
62+
## Pull requests
63+
64+
1. Create or join an issue before substantial work, then fork the repository and create a branch from `main`.
65+
2. Add or update focused tests and public API documentation where applicable.
66+
3. Run restore, build, and the relevant per-project tests locally.
67+
4. Keep the pull request small, explain the behavior change and validation performed, and wait for the CI checks to pass.
68+
69+
## Issues
70+
71+
Include the affected project, target framework, operating system, SDK version, exact command, expected result, actual result, and a minimal reproduction. Identify whether the behavior differs between local Windows/WSL, Docker-Ubuntu and GitHub Actions.
72+
73+
## Coding guidelines
74+
75+
Follow the existing style, the Framework Design Guidelines, the repository `.editorconfig`, and the shared Codebelt conventions. Do not make unrelated formatting or infrastructure changes in a feature pull request.
4976

5077
## License
51-
By contributing to `Shared Kernel API by Codebelt`, you agree that your contributions will be licensed
52-
under the MIT license.
78+
79+
By contributing to Shared Kernel API by Codebelt, you agree that your contributions will be licensed under the MIT license.

‎.nuget/Codebelt.SharedKernel/PackageReleaseNotes.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version: 0.5.12
2+
Availability: .NET 10 and .NET 9
3+
4+
# ALM
5+
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
6+
17
Version: 0.5.11
28
Availability: .NET 10 and .NET 9
39

‎CHANGELOG.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
44

55
For more details, please refer to `PackageReleaseNotes.txt` on a per assembly basis in the `.nuget` folder.
66

7+
## [0.5.12] - 2026-09-14
8+
9+
This is a patch release focused on test infrastructure modernization, build system improvements, and dependency upgrades to their latest compatible versions across all supported target frameworks.
10+
11+
### Added
12+
13+
- `global.json` file to configure `Microsoft.Testing.Platform` as the default test runner for the repository, ensuring consistent test execution behavior.
14+
15+
### Changed
16+
17+
- `Cuemon.Extensions.IO` upgraded to 10.7.1,
18+
- `Codebelt.Extensions.Xunit.App` upgraded to 12.0.1,
19+
- `Microsoft.NET.Test.Sdk` upgraded to 18.10.0 for improved testing infrastructure,
20+
- `MinVer` upgraded to 8.0.0,
21+
- `Savvyio.Domain`, `Savvyio.Extensions.Newtonsoft.Json`, and `Savvyio.Extensions.Text.Json` upgraded to 5.0.12,
22+
- xUnit testing framework updated to 4.0.1 (`xunit.v3`, `xunit.v3.runner.console`) and xUnit Visual Studio runner to 4.0.0 for enhanced .NET ecosystem integration,
23+
- `CONTRIBUTING.md` restructured with clarified build and test guidance, updated repository shape documentation, and improved integration testing instructions to match current CI practices,
24+
- Build infrastructure updated to use `Microsoft.Testing.Extensions.CodeCoverage` for improved code coverage reporting.
25+
26+
### Removed
27+
28+
- `coverlet.msbuild` and `coverlet.collector` packages replaced by `Microsoft.Testing.Extensions.CodeCoverage` for standardized code coverage collection within the Microsoft Testing Platform ecosystem.
29+
730
## [0.5.11] - 2026-08-17
831

932
This is a patch release that consolidates test infrastructure, adds comprehensive editor configuration for code style consistency, and upgrades dependencies to their latest compatible versions.
@@ -175,6 +198,7 @@ Purely an ALM release. No changes to the codebase.
175198
- CoordinatedUniversalTime record in the Codebelt.SharedKernel namespace that represents an object that can be used when you need a timestamp that is based on an absolute time (UTC)
176199
- TimeToLive record in the Codebelt.SharedKernel namespace that represents an object that can be used when issuing authentication tokens or similar (TTL)
177200

201+
[0.5.12]: https://github.com/codebeltnet/shared-kernel/compare/v0.5.11...v0.5.12
178202
[0.5.11]: https://github.com/codebeltnet/shared-kernel/compare/v0.5.10...v0.5.11
179203
[0.5.10]: https://github.com/codebeltnet/shared-kernel/compare/v0.5.9...v0.5.10
180204
[0.5.9]: https://github.com/codebeltnet/shared-kernel/compare/v0.5.8...v0.5.9

‎Directory.Build.props‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,13 @@
7070

7171
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
7272
<PackageReference Include="Microsoft.NET.Test.Sdk" />
73+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
7374
<PackageReference Include="xunit.v3" />
7475
<PackageReference Include="xunit.v3.runner.console" />
7576
<PackageReference Include="xunit.runner.visualstudio">
7677
<PrivateAssets>all</PrivateAssets>
7778
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7879
</PackageReference>
79-
<PackageReference Include="coverlet.msbuild">
80-
<PrivateAssets>all</PrivateAssets>
81-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
82-
</PackageReference>
83-
<PackageReference Include="coverlet.collector">
84-
<PrivateAssets>all</PrivateAssets>
85-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
86-
</PackageReference>
8780
<PackageReference Include="Codebelt.Extensions.Xunit.App" PrivateAssets="all" />
8881
</ItemGroup>
8982

‎Directory.Packages.props‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageVersion Include="Cuemon.Extensions.IO" Version="10.7.0" />
7-
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="11.2.1" />
8-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
9-
<PackageVersion Include="MinVer" Version="7.0.0" />
10-
<PackageVersion Include="Savvyio.Domain" Version="5.0.11" />
11-
<PackageVersion Include="Savvyio.Extensions.Newtonsoft.Json" Version="5.0.11" />
12-
<PackageVersion Include="Savvyio.Extensions.Text.Json" Version="5.0.11" />
13-
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
14-
<PackageVersion Include="coverlet.msbuild" Version="10.0.1" />
15-
<PackageVersion Include="xunit.v3" Version="3.2.2" />
16-
<PackageVersion Include="xunit.v3.runner.console" Version="3.2.2" />
17-
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
6+
<PackageVersion Include="Cuemon.Extensions.IO" Version="10.7.1" />
7+
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="12.0.1" />
8+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.10.0" />
9+
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.11.2" />
10+
<PackageVersion Include="MinVer" Version="8.0.0" />
11+
<PackageVersion Include="Savvyio.Domain" Version="5.0.12" />
12+
<PackageVersion Include="Savvyio.Extensions.Newtonsoft.Json" Version="5.0.12" />
13+
<PackageVersion Include="Savvyio.Extensions.Text.Json" Version="5.0.12" />
14+
<PackageVersion Include="xunit.v3" Version="4.0.1" />
15+
<PackageVersion Include="xunit.v3.runner.console" Version="4.0.1" />
16+
<PackageVersion Include="xunit.runner.visualstudio" Version="4.0.0" />
1817
</ItemGroup>
1918
</Project>

‎global.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

0 commit comments

Comments
 (0)