From d026090f7087607696161546e7a80c0f286c60ec Mon Sep 17 00:00:00 2001 From: Elie Bariche <33458222+ebariche@users.noreply.github.com> Date: Fri, 2 Sep 2022 15:52:37 -0400 Subject: [PATCH] fix(WaitForUnlockedFile): Break if we can acquire exclusive lock on file --- .../LinkerHintsGenerator/LinkerDefinitionMergerTask.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerDefinitionMergerTask.cs b/src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerDefinitionMergerTask.cs index 4882607d044d..48baaf7eab30 100644 --- a/src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerDefinitionMergerTask.cs +++ b/src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerDefinitionMergerTask.cs @@ -121,6 +121,8 @@ private void WaitForUnlockedFile(string filePath) try { File.OpenWrite(filePath).Dispose(); + + break; } catch {