© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
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
--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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ [Compiler Help] [GitLab CI/CD]
C#CC# / help
4y ago
dotnet format and jetbrains rules
C#CC# / help
4y ago
Problem with the dotnet installation in gitlab-ci (Docker, Debian11)
C#CC# / help
16mo ago
What's the basic approach for CI/CD integration tests in Azure DevOps?
C#CC# / help
2y ago