-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce public interfaces for per-project and per-evaluation disk I/O callbacks #6728
Merged
+533
−90
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b6fd14c
Introduce IDirectoryCache & IDirectoryCacheFactory
ladipro 7dae629
PR feedback: Pass Project instead of project path
ladipro 9dcb52a
Don't depend on System.IO.Enumeration
ladipro 521d042
Make EngineFileUtilities static
ladipro e235b15
Implement DirectoryCacheOverFileSystem
ladipro 62737b6
Basic wiring of EvaluationContext-specific FileMatcher
ladipro 10fff0f
Make FileMatcher consume IDirectoryCache instead of IFileSystem
ladipro 200e037
Revert "Make FileMatcher consume IDirectoryCache instead of IFileSystem"
ladipro 1004b54
Introduce DirectoryCacheFileSystemWrapper
ladipro faeda3e
Avoid string allocations when calling IsMatch
ladipro 1d0a741
Pass IDirectoryCacheFactory to Project ctor (reverts most changes to …
ladipro 65c4942
Fix bugs
ladipro e0340b7
Use directory cache in all of evaluation
ladipro 77ed3ff
Add unit test
ladipro 90a6bde
Tweaks and bug fixes
ladipro 73d7636
More internal IFileSystem deprecation and tweaks
ladipro f916592
Add pattern parameter to EnumerateFiles and EnumerateDirectories
ladipro 43f1323
Revert "More internal IFileSystem deprecation and tweaks"
ladipro 89f7cc6
Redo some of the minor tweaks reverted in previous commit
ladipro e800fa8
Optimize path manipulations (Microsoft.IO.Redist)
ladipro 231a869
Tweaks and comments
ladipro 2348cd8
Remove unused parameter
ladipro e30d239
Add and update comments
ladipro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to augment MSBuildFileSystemBase with these new methods instead of creating a new interface?. With a new interface, the APIs will get harded to use. Users will have to think whether to implement one or the other, or both, Maybe a new generic MSBuildFileSystemBase that extends MSBuildFileSystemBase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed an update where the interface is now provided via
Project
and notEvaluationContext
so having a separate one should be easier to justify. I would argue that having multiple methods providing the same functionality inMSBuildFileSystemBase
would also be confusing for users because it wouldn't be clear which one is used when.