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 cf98234ef..87a81d5bc 100644 --- a/src/internal/SetBuildNumber/SetBuildNumber.proj +++ b/src/internal/SetBuildNumber/SetBuildNumber.proj @@ -23,6 +23,7 @@ SetGlobalJson; SetDirectoryPackagesProps; SetOverallWixVersions; + TransformWixAppConfig; InstallSigningClient @@ -30,8 +31,26 @@ $([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))) + + + + + + + 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 @@ + + + + + + + + + +