From 57b11715974599849f4ae49f1882a0242b6096f8 Mon Sep 17 00:00:00 2001 From: chris_bednarski Date: Fri, 1 Sep 2023 13:26:29 +1000 Subject: [PATCH] add assembly redirects for cross version integration tests --- nuget.config | 1 + .../SetBuildNumber/SetBuildNumber.proj | 27 ++++++++++++++++--- .../SetBuildNumber/transform.wix.app.config | 18 +++++++++++++ src/wix/wix/app.config | 10 +++++++ 4 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 src/internal/SetBuildNumber/transform.wix.app.config diff --git a/nuget.config b/nuget.config index b7e5add1c..cea62835b 100644 --- a/nuget.config +++ b/nuget.config @@ -12,6 +12,7 @@ + diff --git a/src/internal/SetBuildNumber/SetBuildNumber.proj b/src/internal/SetBuildNumber/SetBuildNumber.proj index 9ff4e7c33..324b9e577 100644 --- a/src/internal/SetBuildNumber/SetBuildNumber.proj +++ b/src/internal/SetBuildNumber/SetBuildNumber.proj @@ -22,15 +22,34 @@ GitThisAssembly; SetGlobalJson; SetDirectoryPackagesProps; - SetOverallWixVersions + SetOverallWixVersions; + TransformWixAppConfig $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\global.json)) $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\Directory.Packages.props)) $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\build\wixver.props)) $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\build\ThisAssembly.WixVer.cs)) + $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\wix\wix\app.config)) + + + + $([System.IO.File]::ReadAllText(transform.wix.app.config)) + $(OverallWixAppConfigText.Replace('{GitBaseVersionMajor}', $(GitBaseVersionMajor))) + + + + + + + @@ -50,7 +69,7 @@ @@ -74,7 +93,7 @@ @@ -98,7 +117,7 @@ diff --git a/src/internal/SetBuildNumber/transform.wix.app.config b/src/internal/SetBuildNumber/transform.wix.app.config new file mode 100644 index 000000000..188427ea4 --- /dev/null +++ b/src/internal/SetBuildNumber/transform.wix.app.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/wix/wix/app.config b/src/wix/wix/app.config index 081fea2c4..75b447520 100644 --- a/src/wix/wix/app.config +++ b/src/wix/wix/app.config @@ -4,5 +4,15 @@ + + + + + + + + + +