-
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
[release/vs17.10] Fix issue with assemblies locking #9974
[release/vs17.10] Fix issue with assemblies locking #9974
Conversation
since we plan to service this pr, I assume this localization can be safely delivered too |
Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version. |
/backport to main |
Started backporting to main: https://github.com/dotnet/msbuild/actions/runs/8556564619 |
@YuliiaKovalova backporting to main failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: dispose AssemblyInformation
Applying: bump version
Using index info to reconstruct a base tree...
M eng/Versions.props
Falling back to patching base and 3-way merge...
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 bump version
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@YuliiaKovalova an error occurred while backporting to main, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
* Translation update from OneLocBuild (#9963) * Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9347357 * Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9347357 * Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9394753 * Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9394753 * Remove spurious `Ł` character in Italian version string --------- Co-authored-by: Rainer Sigwald <[email protected]> * Dispose AssemblyInformation in GetAssembliesMetadata (#9974) Fixes AB#2017198 by releasing the handle to the file by disposing the AssemblyInformation deterministically. * Update package version to 17.10.2 (#9994) --------- Co-authored-by: dotnet bot <[email protected]> Co-authored-by: Rainer Sigwald <[email protected]> Co-authored-by: YuliiaKovalova <[email protected]> Co-authored-by: Surayya Huseyn Zada <[email protected]>
Fixes AB#2017198 by releasing the handle to the file by disposing the AssemblyInformation deterministically.
Summary
The issue is related to the presence of disposable resource that wasn't cleaned up in time.
Customer Impact
Absence of dispose causes "warning MSB3026: Could not copy ".dll". Beginning retry 1 in 1000ms. The process cannot access the file '.dll' because it is being used by another process. The file is locked by: "MSBuild.exe" and it's presence breaks project building.
Regression?
Yes, was introduced in scope of https://github.com/dotnet/msbuild/pull/9313/files#diff-0c7ff4eddab39e683e61e6f11011eac73dae76d2574999184b3c0e74f9c2fa10
Testing
Manual -the problem wasn't caught locally, but manual testing doesn't expose any side effects.
Risk
Low, doesn't contain any changes in logic.