Skip to content
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

Include list of processes that lock file in can't write file error message #75946

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Nov 17, 2024

Use Win32 APIs to get the list of processes that have the file open. Based on msbuild implementation: https://github.com/dotnet/msbuild/blob/6cd445d84e59a36c7fbb6f50b7a5a62767a6da51/src/Utilities/LockCheck.cs

Related: dotnet/runtime#109927

@tmat tmat requested a review from a team as a code owner November 17, 2024 04:28
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 17, 2024
@tmat
Copy link
Member Author

tmat commented Nov 17, 2024

@rainersigwald fyi

@tmat tmat force-pushed the LockCheck branch 2 times, most recently from 7055185 to c0510e5 Compare November 17, 2024 21:37
@tmat
Copy link
Member Author

tmat commented Nov 18, 2024

@dotnet/roslyn-compiler ptal

@AlekseyTs
Copy link
Contributor

Done with review pass (commit 1)

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants