Skip to content

Commit 64d797b

Browse files
authored
Overwrite binlog on retries
1 parent b928931 commit 64d797b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectTemplates/Shared/Project.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ private void CaptureBinLogOnFailure(ProcessEx result)
443443
var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog");
444444
Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'.");
445445
var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
446-
File.Move(sourceFile, destination);
446+
File.Move(sourceFile, destination, overwrite: true); // binlog will exist on retries
447447
}
448448
}
449449

0 commit comments

Comments
 (0)