From 6f3d764f6d375d0bd69397ddab4f8368d692f8ef Mon Sep 17 00:00:00 2001 From: Michelle McDaniel Date: Mon, 8 Feb 2021 07:34:30 -0800 Subject: [PATCH] Duplicate productVersion.txt with repo-specific name In our efforts to unify the build access story using aka.ms links, we have found that there are certain files that share the same name in multiple different repositories, most importantly, productVersion.txt. As part of the work to move to aka.ms links, we will be flattening the short link paths, so rather than having a runtime-specific, aspnetcore-specific, etc. full path to the files generated by each of the repos, they will all go to the same short link location. This means that the path to productVersion.txt will collide in the aka.ms links (the backing locations are not changing and will be unaffected). To combat this, we will add a duplicate of each of the product repos productVersion.txt, renamed to indicate which product repo it came from, in this case runtime-productVersion.txt. The original will remane so that we do not break existing scenarios that do not use the aka.ms links. --- src/installer/publish/prepare-artifacts.proj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/installer/publish/prepare-artifacts.proj b/src/installer/publish/prepare-artifacts.proj index 4a5ff2ddd3cd0..39200d4e2970c 100644 --- a/src/installer/publish/prepare-artifacts.proj +++ b/src/installer/publish/prepare-artifacts.proj @@ -77,6 +77,13 @@ Lines="$(ProductVersionTxtContents)" Overwrite="true" Encoding="ASCII" /> + + + @@ -103,6 +110,11 @@ true + + $(InstallersRelativePath)runtime-productVersion.txt + true + +