Deterministic formatting keeps the generated sources diff-friendly and prevents avoidable churn in pull requests. The generator already normalises indentation and braces, but you should still run dotnet format so that analyzers, spacing rules, and newline preferences stay aligned with the solution-wide .editorconfig.
dotnet run --project src/Xtraq.csproj -- build …).dotnet format src/Xtraq.csproj
dotnet format samples/restapi/RestApiSample.csproj --include samples/restapi/Xtraq
--verify-no-changes during development to ensure the workspace is clean before pushing:
dotnet format Xtraq.sln --verify-no-changes --include src samples/restapi/Xtraq
The VS Code format code task (Ctrl/Cmd+Shift+B) already wires dotnet format src/Xtraq.csproj; you can duplicate that task and point it at other projects if needed.
dotnet format Xtraq.sln --verify-no-changes so diffs fail fast when formatting drifts.dotnet format ➜ tests.--include list so the formatter covers them as well.global.json (if present); older SDKs may not understand the latest format options.dotnet format reports analyzers that the generator cannot fix automatically, address them in the templates or suppress them in .editorconfig with a comment explaining the rationale.--include with explicit file globs to keep formatting runs fast.