From 8e8a36765b18dfdd49525051b87794309f11c60f Mon Sep 17 00:00:00 2001 From: Michelle McDaniel Date: Tue, 16 Feb 2021 09:37:58 -0800 Subject: [PATCH] Duplicate productVersion.txt with repo-specific name (#48018) (#48194) 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 a2643b27131f7..c47e8de1b2c4b 100644 --- a/src/installer/publish/prepare-artifacts.proj +++ b/src/installer/publish/prepare-artifacts.proj @@ -86,6 +86,13 @@ Lines="$(ProductVersionTxtContents)" Overwrite="true" Encoding="ASCII" /> + + + @@ -112,6 +119,11 @@ true + + $(InstallersRelativePath)runtime-productVersion.txt + true + +