From 65714b792891bc92773730fd37324f6e3b46517b Mon Sep 17 00:00:00 2001 From: vwxyzh Date: Tue, 27 Sep 2016 14:48:35 +0800 Subject: [PATCH] change to random file name for incremental. (#740) --- .../SingleDocumentBuilder.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.DocAsCode.Build.Engine/SingleDocumentBuilder.cs b/src/Microsoft.DocAsCode.Build.Engine/SingleDocumentBuilder.cs index 3c5a1db6a80..49bb2bf90e6 100644 --- a/src/Microsoft.DocAsCode.Build.Engine/SingleDocumentBuilder.cs +++ b/src/Microsoft.DocAsCode.Build.Engine/SingleDocumentBuilder.cs @@ -83,15 +83,16 @@ private Manifest BuildCore(DocumentBuildParameters parameters) { string configHash = ComputeConfigHash(parameters); var fileAttributes = ComputeFileAttributes(parameters); + var baseDir = Path.Combine(IntermediateFolder, CurrentBuildInfo.DirectoryName); _cbv = new BuildVersionInfo { VersionName = parameters.VersionName, ConfigHash = configHash, - AttributesFile = "attributes", - DependencyFile = "dependency", - ManifestFile = "manifest", - XRefSpecMapFile = "xrefspecmap", - BuildMessageFile = "buildmessage", + AttributesFile = IncrementalUtility.CreateRandomFileName(baseDir), + DependencyFile = IncrementalUtility.CreateRandomFileName(baseDir), + ManifestFile = IncrementalUtility.CreateRandomFileName(baseDir), + XRefSpecMapFile = IncrementalUtility.CreateRandomFileName(baseDir), + BuildMessageFile = IncrementalUtility.CreateRandomFileName(baseDir), Attributes = fileAttributes, Dependency = context.DependencyGraph, };