[dotnet] run format against slnx instead of looping csproj#17483
[dotnet] run format against slnx instead of looping csproj#17483titusfortner wants to merge 6 commits into
Conversation
Review Summary by Qodo(Agentic_describe updated until commit 09a78e4)Run dotnet format against slnx solution file instead of looping csproj files
WalkthroughsDescription• Replace per-project formatting loop with single slnx solution file • Significantly improves format command performance by half • Add solution file existence validation and error handling • Fix Windows script runfiles directory path resolution • Set AllowMissingPrunePackageData environment variable for Bazel SDK compatibility Diagramflowchart LR
A["Loop over individual csproj files"] -->|Replace with| B["Single slnx solution file"]
B -->|Performance gain| C["Format time cut in half"]
D["Add validation"] -->|Ensure| B
E["Set environment variable"] -->|Enable| B
File Changes1. dotnet/private/dotnet_format.bzl
|
Code Review by Qodo
1.
|
|
Persistent review updated to latest commit 71273a5 |
|
Persistent review updated to latest commit 837f368 |
|
Interesting, this works locally on my mac, even when I delete cache and things, adding diagnostics to debug issue on windows. |
|
There we go, it was erroring based on Pruned data on Windows, these settings fixed it. verified that time on CI is much less as well as local |
|
Persistent review updated to latest commit 09a78e4 |
🔗 Related Issues
Implements #17457
💥 What does this PR do?
Uses slnx instead of looping over csproj. Format commit time is cut in half.
🔧 Implementation Notes
🤖 AI assistance