From bf287af37af360311dd2849b31e7d94c33da1438 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Fri, 17 Apr 2026 13:23:40 +0100 Subject: [PATCH] docs: align contributing guide with ci --- CONTRIBUTING.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 499e7dd3..d423e104 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,11 +4,13 @@ Thanks for your interest in improving the PostHog .NET SDK. ## Building -From the repository root, restore dependencies and build the solution: +From the repository root, use the same restore, formatting, build, and test flow that CI runs: ```bash -dotnet restore -dotnet build +dotnet restore --locked-mode +bin/fmt --check +dotnet build --configuration Release --no-restore --nologo +dotnet test --configuration Release --no-build --nologo ``` ## Running samples @@ -31,14 +33,6 @@ You can also run the samples from your preferred IDE or editor. ## Testing -Run the test suite from the repository root: - -```bash -dotnet test -``` - -### Test target frameworks - The test projects target both `net8.0` and `netcoreapp3.1`. While .NET Core 3.1 reached end-of-life in December 2022, we continue to test against it because: - It was the first runtime to fully support .NET Standard 2.1