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.
- Read the repository
README.mdand open an issue before starting a non-trivial feature or behavioral change. - Install the .NET 10 and .NET 11 SDKs to build net10.0 and net11.0 and run all tests. This supplies the required .NET and ASP.NET Core runtimes for both targets.
- The solution is
Codebelt.Extensions.Carter.slnx. Central package versions are maintained inDirectory.Packages.props. - The shared build behavior is in
Directory.Build.propsandDirectory.Build.targets; repository-specific TFMs, package references and metadata remain local to this library.
src/contains production projects.test/contains xUnit v3 test projects.Codebelt.Extensions.Carter.slnxis the solution used for local development..github/workflows/ci-pipeline.ymlis the CI workflow and the authority for the test matrix.testenvironments.jsondeclares the supportedWSL-Ubuntu,Docker-Ubuntu (net10.0), andDocker-Ubuntu (net11.0)test environments.
Restore and build the solution from the repository root:
dotnet restore "Codebelt.Extensions.Carter.slnx"
dotnet build "Codebelt.Extensions.Carter.slnx" --configuration Release --no-restoreCI builds both Debug and Release configurations. A clean build should complete before opening a pull request.
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.
$testProjects = Get-ChildItem test -Filter *.csproj -Recurse
foreach ($project in $testProjects) {
dotnet test --project $project.FullName --configuration Release --no-build --no-restore
if ($LASTEXITCODE -ne 0) { throw "Tests failed: $($project.FullName)" }
}The CI test plan runs all 6 test projects on both net10.0 and net11.0, in Debug and Release on Linux and Windows for x64 and ARM64. The workflow also has an optional macOS test job. SDK installation includes preview releases so .NET 11 can be tested before its final release.
NuGet publishing requires successful builds, packaging, the test quality gate, SonarCloud, Codecov, and CodeQL.
WSL-Ubuntu— WSL distributionUbuntu-26.04.Docker-Ubuntu (net10.0)— Docker imagecodebeltnet/ubuntu-testrunner:10.Docker-Ubuntu (net11.0)— Docker imagecodebeltnet/ubuntu-testrunner:11.
This repository has no repository-local docker-compose.yml service dependency in the current checkout.
Use the environments declared in testenvironments.json when you need the estate test runner.
Create packages using the same solution and Release configuration:
dotnet pack "Codebelt.Extensions.Carter.slnx" --configuration Release --no-restorePackage-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.
- Create or join an issue before substantial work, then fork the repository and create a branch from
main. - Add or update focused tests and public API documentation where applicable.
- Run restore, build, and the relevant per-project tests locally.
- Keep the pull request small, explain the behavior change and validation performed, and wait for the CI checks to pass.
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.
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.
By contributing to Extensions for Carter API by Codebelt, you agree that your contributions will be licensed under the MIT license.