From 106edf17c8a959ad26fb956ec5b699d488656a5c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 22:40:31 +0000 Subject: [PATCH 1/5] Initial plan From d2b45127fda51f537cf50a11d7491e373a1595ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:06:49 +0000 Subject: [PATCH 2/5] Address review feedback on dotnet format and SETUP.md Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> --- .github/workflows/pr.yaml | 1 + README-FORMATTING.md | 6 ++++++ README.md | 2 +- format.ps1 | 21 +++++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e0aa9f9..d0ba74a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -49,6 +49,7 @@ jobs: - name: Check Code Formatting run: | + # dotnet format is built into .NET 6+ SDK (no separate installation needed) # Find solution file solution=$(find . -maxdepth 2 \( -name "*.sln" -o -name "*.slnx" \) | head -n 1) diff --git a/README-FORMATTING.md b/README-FORMATTING.md index 969e094..e645d68 100644 --- a/README-FORMATTING.md +++ b/README-FORMATTING.md @@ -2,6 +2,12 @@ This repository uses `dotnet format` to enforce consistent C# code style. +## Prerequisites + +The `dotnet format` command is **built into the .NET SDK** starting with .NET 6 and later. Since this project requires .NET 8.0 SDK or later, you already have `dotnet format` available—no separate tool installation is needed. + +> **Note:** The standalone `dotnet-format` global tool was deprecated when `dotnet format` was integrated into the .NET 6 SDK in August 2021. + ## For Developers ### Before Committing diff --git a/README.md b/README.md index 2f9c0fe..ae682e0 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) f - **API Documentation:** Generated via DocFX (see `docfx_project/`) - **Formatting Guide:** [README-FORMATTING.md](README-FORMATTING.md) -- **Setup Instructions:** [SETUP.md](SETUP.md) +- **Contributing Guide:** [CONTRIBUTING.md](CONTRIBUTING.md) --- diff --git a/format.ps1 b/format.ps1 index be7176c..fb9ddaa 100644 --- a/format.ps1 +++ b/format.ps1 @@ -28,6 +28,27 @@ $ErrorActionPreference = "Stop" Write-Host "🎨 Code Formatting Script" -ForegroundColor Cyan Write-Host "" +# Verify dotnet format is available (built into .NET 6+ SDK) +Write-Host "🔍 Checking for dotnet format..." -ForegroundColor Yellow +$formatCheck = dotnet format --version 2>&1 + +if ($LASTEXITCODE -ne 0) +{ + Write-Host "" + Write-Host "❌ dotnet format is not available!" -ForegroundColor Red + Write-Host "" + Write-Host "The 'dotnet format' command is built into the .NET SDK starting with .NET 6." -ForegroundColor Yellow + Write-Host "This project requires .NET 8.0 SDK or later." -ForegroundColor Yellow + Write-Host "" + Write-Host "Please install the .NET 8.0 SDK or later from:" -ForegroundColor Yellow + Write-Host "https://dotnet.microsoft.com/download" -ForegroundColor Cyan + Write-Host "" + exit 1 +} + +Write-Host "✅ dotnet format is available" -ForegroundColor Green +Write-Host "" + # Find solution file $solutions = Get-ChildItem -Path . -File | Where-Object { $_.Extension -eq '.sln' -or $_.Extension -eq '.slnx' } | Select-Object -First 1 From 1d5f189c40a5b4559f9e0dd3e4a891f37c00fd05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:07:34 +0000 Subject: [PATCH 3/5] Fix unused variable in format.ps1 Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> --- format.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.ps1 b/format.ps1 index fb9ddaa..a0cf415 100644 --- a/format.ps1 +++ b/format.ps1 @@ -30,7 +30,7 @@ Write-Host "" # Verify dotnet format is available (built into .NET 6+ SDK) Write-Host "🔍 Checking for dotnet format..." -ForegroundColor Yellow -$formatCheck = dotnet format --version 2>&1 +dotnet format --version | Out-Null if ($LASTEXITCODE -ne 0) { From 9934a2f98547f8da46f425e4ef9cf6d0c9e25573 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:08:07 +0000 Subject: [PATCH 4/5] Replace em dash with double hyphen for Markdown compatibility Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> --- README-FORMATTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-FORMATTING.md b/README-FORMATTING.md index e645d68..7f0cf67 100644 --- a/README-FORMATTING.md +++ b/README-FORMATTING.md @@ -4,7 +4,7 @@ This repository uses `dotnet format` to enforce consistent C# code style. ## Prerequisites -The `dotnet format` command is **built into the .NET SDK** starting with .NET 6 and later. Since this project requires .NET 8.0 SDK or later, you already have `dotnet format` available—no separate tool installation is needed. +The `dotnet format` command is **built into the .NET SDK** starting with .NET 6 and later. Since this project requires .NET 8.0 SDK or later, you already have `dotnet format` available--no separate tool installation is needed. > **Note:** The standalone `dotnet-format` global tool was deprecated when `dotnet format` was integrated into the .NET 6 SDK in August 2021. From adfa0ae0bf96a36108abb9b7862f08005f2db10a Mon Sep 17 00:00:00 2001 From: Chris Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:39:48 -0500 Subject: [PATCH 5/5] Update README-FORMATTING.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README-FORMATTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-FORMATTING.md b/README-FORMATTING.md index 7f0cf67..cc6816e 100644 --- a/README-FORMATTING.md +++ b/README-FORMATTING.md @@ -4,7 +4,7 @@ This repository uses `dotnet format` to enforce consistent C# code style. ## Prerequisites -The `dotnet format` command is **built into the .NET SDK** starting with .NET 6 and later. Since this project requires .NET 8.0 SDK or later, you already have `dotnet format` available--no separate tool installation is needed. +The `dotnet format` command is **built into the .NET SDK** starting with .NET 6 and later. Since this project requires .NET 8.0 SDK or later, you already have `dotnet format` available — no separate tool installation is needed. > **Note:** The standalone `dotnet-format` global tool was deprecated when `dotnet format` was integrated into the .NET 6 SDK in August 2021.