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 @@ + + + + + + + + + +