C#C
C#3y ago
becquerel

❔ Enforcing dotnet format in CI/CD

Does anyone have experience enforcing dotnet format rules in CI/CD? We;re using Azure Devops/TFS specifically. My understanding is that you shouldn't actually format anything in the pipeline, just run --verify-no-changes and use git pre-commit hooks to ensure the code is formatted before it's pushed up.

But when I tried to implement this I had unending trouble with the git hooks, since we're on WIndows. Are there any alternatives?
Was this page helpful?