Claude Code hooks for .NET: make it build and run your tests
Claude Code can report a .NET task as finished without ever building the solution or running the tests. A Stop hook whose command builds and tests the solution, exiting with code 2 on failure, blocks the agent until both pass.