-
-
Notifications
You must be signed in to change notification settings - Fork 138
Milestone
Description
Environments:
- CSharpier Version: 1.2.3
- Running CSharpier via: dotnet cli
- Operating System: Windows
- .csharpierrc Settings: N/A
- .editorconfig Settings: N/A
Steps to reproduce:
Run dotnet csharpier format . on Windows in a project that uses pnpm with a large number of packages.
Expected behavior:
Formats in a reasonable amount of time
Actual behavior:
Takes about 5 minutes to run formatting.
I've narrowed the issue down to the call to .EnumerateFiles() in HasMismatchedCliAndMsBuildVersions.Check(). Running CSharpier with the --no-msbuild-check gets rid of the performance issue, and runs in 2-3 seconds instead of 5 minutes, but it'd be nice to not have to pass that flag when using the tool.
avery-radmacher
Metadata
Metadata
Assignees
Labels
No labels