You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update DirectoryInfo and FileInfo Create, Delete and Exists changed behavior #4061
Pri3Indicates issues/PRs that are low priorityarea-System.IOdoc-enhancementImprove the current contentdoc-updateUpdate outdated articleseasyIssue should be easy to implement, good for first-time contributorshelp wantedGood for community contributors to help [up-for-grabs]untriagedNew issue has not been triaged by the area owner
Make sure documentation matches new behaviors merged into these two PRs where Invalidate() is called, and mention it's a breaking change where appropriate:
I'd like to work on this. I plan to update the remarks for FileInfo.Create/Delete/Exists and DirectoryInfo.Create/Delete/Exists to say that in .NET 5+ these methods refresh cached state, and to note the difference from .NET Framework
Pri3Indicates issues/PRs that are low priorityarea-System.IOdoc-enhancementImprove the current contentdoc-updateUpdate outdated articleseasyIssue should be easy to implement, good for first-time contributorshelp wantedGood for community contributors to help [up-for-grabs]untriagedNew issue has not been triaged by the area owner
Activity
dangarharshil11 commentedon Oct 5, 2026
I'd like to work on this. I plan to update the remarks for FileInfo.Create/Delete/Exists and DirectoryInfo.Create/Delete/Exists to say that in .NET 5+ these methods refresh cached state, and to note the difference from .NET Framework