diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-06-21 20:47:39 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2026-06-22 08:13:44 -0400 |
| commit | c5b1c40cd44145a24cb82349d988e7abdd0b94d5 (patch) | |
| tree | 48fc8a2ee4af4b17741225a61647d89182f7eace /src | |
| parent | 34d99cb07df7519c273aa352185df3a7e4a01bb9 (diff) | |
| download | wix-c5b1c40cd44145a24cb82349d988e7abdd0b94d5.tar.gz wix-c5b1c40cd44145a24cb82349d988e7abdd0b94d5.tar.bz2 wix-c5b1c40cd44145a24cb82349d988e7abdd0b94d5.zip | |
Minor improvements to Burn, tests, and doc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/burn/engine/core.cpp | 2 | ||||
| -rw-r--r-- | src/test/wix/WixE2E/WixE2EFixture.cs | 43 | ||||
| -rw-r--r-- | src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs | 24 | ||||
| -rw-r--r-- | src/wix/test/WixToolsetTest.Sdk/TestData/MultiTargetingWixlib/TestExe/TestExe.csproj | 3 | ||||
| -rw-r--r-- | src/xsd/wix/Upgrade.xsd | 4 |
5 files changed, 39 insertions, 37 deletions
diff --git a/src/burn/engine/core.cpp b/src/burn/engine/core.cpp index 926c327b..956ef041 100644 --- a/src/burn/engine/core.cpp +++ b/src/burn/engine/core.cpp | |||
| @@ -383,7 +383,7 @@ extern "C" HRESULT CoreDetect( | |||
| 383 | pEngineState->registration.fEligibleForCleanup = FALSE; | 383 | pEngineState->registration.fEligibleForCleanup = FALSE; |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | LogId(REPORT_STANDARD, MSG_DETECTED_PACKAGE, pPackage->sczId, LoggingPackageStateToString(pPackage->currentState), LoggingBoolToString(pPackage->fCached), LoggingPackageRegistrationStateToString(pPackage->fCanAffectRegistration, pPackage->installRegistrationState), LoggingPackageRegistrationStateToString(pPackage->fCanAffectRegistration, pPackage->cacheRegistrationState), LoggingPackageScopeToString(pPackage->scope), LoggingInstallScopeToString(pPackage->fDetectedPerMachine)); | 386 | LogId(REPORT_STANDARD, MSG_DETECTED_PACKAGE, pPackage->sczId, LoggingPackageStateToString(pPackage->currentState), BURN_PACKAGE_TYPE_MSI == pPackage->type ? LoggingBoolToString(pPackage->fCached) : "(not configurable scope)", LoggingPackageRegistrationStateToString(pPackage->fCanAffectRegistration, pPackage->installRegistrationState), LoggingPackageRegistrationStateToString(pPackage->fCanAffectRegistration, pPackage->cacheRegistrationState), LoggingPackageScopeToString(pPackage->scope), LoggingInstallScopeToString(pPackage->fDetectedPerMachine)); |
| 387 | 387 | ||
| 388 | if (BURN_PACKAGE_TYPE_MSI == pPackage->type) | 388 | if (BURN_PACKAGE_TYPE_MSI == pPackage->type) |
| 389 | { | 389 | { |
diff --git a/src/test/wix/WixE2E/WixE2EFixture.cs b/src/test/wix/WixE2E/WixE2EFixture.cs index abea0ec7..8f993808 100644 --- a/src/test/wix/WixE2E/WixE2EFixture.cs +++ b/src/test/wix/WixE2E/WixE2EFixture.cs | |||
| @@ -136,35 +136,36 @@ namespace WixToolsetTest.WixE2E | |||
| 136 | Assert.AreNotEqual(firstHashes, secondHashes); | 136 | Assert.AreNotEqual(firstHashes, secondHashes); |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | //[TestMethod] | 139 | [Ignore] |
| 140 | [TestMethod] | ||
| 140 | //[Fact(Skip = "Investigate if .NET Core WebApplications can be incrementally built")] | 141 | //[Fact(Skip = "Investigate if .NET Core WebApplications can be incrementally built")] |
| 141 | //public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits() | 142 | public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits() |
| 142 | //{ | 143 | { |
| 143 | // var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore"); | 144 | var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore"); |
| 144 | // var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj"); | 145 | var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj"); |
| 145 | // var projectBinPath = Path.Combine(projectDirectory, "bin"); | 146 | var projectBinPath = Path.Combine(projectDirectory, "bin"); |
| 146 | 147 | ||
| 147 | // CleanEverything(); | 148 | CleanEverything(); |
| 148 | 149 | ||
| 149 | // var result = RestoreAndBuild(projectPath); | 150 | var result = RestoreAndBuild(projectPath); |
| 150 | // result.AssertSuccess(); | 151 | result.AssertSuccess(); |
| 151 | 152 | ||
| 152 | // var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); | 153 | var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); |
| 153 | // var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); | 154 | var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); |
| 154 | 155 | ||
| 155 | // //var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs"); | 156 | //var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs"); |
| 156 | // //File.SetLastWriteTime(packageWxsPath, DateTime.Now); | 157 | //File.SetLastWriteTime(packageWxsPath, DateTime.Now); |
| 157 | 158 | ||
| 158 | // // This should be an incremental build that does work because a file was updated. | 159 | // This should be an incremental build that does work because a file was updated. |
| 159 | // // | 160 | // |
| 160 | // result = RestoreAndBuild(projectPath); | 161 | result = RestoreAndBuild(projectPath); |
| 161 | // result.AssertSuccess(); | 162 | result.AssertSuccess(); |
| 162 | 163 | ||
| 163 | // var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); | 164 | var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); |
| 164 | // var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); | 165 | var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); |
| 165 | 166 | ||
| 166 | // WixAssert.CompareLineByLine(firstHashes, secondHashes); | 167 | WixAssert.CompareLineByLine(firstHashes, secondHashes); |
| 167 | //} | 168 | } |
| 168 | 169 | ||
| 169 | private static void CleanEverything() | 170 | private static void CleanEverything() |
| 170 | { | 171 | { |
diff --git a/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs b/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs index 7d2d8af5..33dc6b1f 100644 --- a/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs +++ b/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs | |||
| @@ -828,10 +828,10 @@ namespace WixToolsetTest.Sdk | |||
| 828 | 828 | ||
| 829 | WixAssert.CompareLineByLine(new[] | 829 | WixAssert.CompareLineByLine(new[] |
| 830 | { | 830 | { |
| 831 | @"net472_x64\e_sqlite3.dll - 1601536", | 831 | @"net472_x64\e_sqlite3.dll - 1911296", |
| 832 | @"net472_x86\e_sqlite3.dll - 1207296", | 832 | @"net472_x86\e_sqlite3.dll - 1503232", |
| 833 | @"net8_x64\e_sqlite3.dll - 1601536", | 833 | @"net8_x64\e_sqlite3.dll - 1911296", |
| 834 | @"net8_x86\e_sqlite3.dll - 1207296", | 834 | @"net8_x86\e_sqlite3.dll - 1503232", |
| 835 | }, releaseFileSizes); | 835 | }, releaseFileSizes); |
| 836 | } | 836 | } |
| 837 | } | 837 | } |
| @@ -898,14 +898,14 @@ namespace WixToolsetTest.Sdk | |||
| 898 | 898 | ||
| 899 | WixAssert.CompareLineByLine(new[] | 899 | WixAssert.CompareLineByLine(new[] |
| 900 | { | 900 | { |
| 901 | @"debug_net472_x64\e_sqlite3.dll - 1601536", | 901 | @"debug_net472_x64\e_sqlite3.dll - 1911296", |
| 902 | @"debug_net472_x86\e_sqlite3.dll - 1207296", | 902 | @"debug_net472_x86\e_sqlite3.dll - 1503232", |
| 903 | @"debug_net8_x64\e_sqlite3.dll - 1601536", | 903 | @"debug_net8_x64\e_sqlite3.dll - 1911296", |
| 904 | @"debug_net8_x86\e_sqlite3.dll - 1207296", | 904 | @"debug_net8_x86\e_sqlite3.dll - 1503232", |
| 905 | @"release_net472_x64\e_sqlite3.dll - 1601536", | 905 | @"release_net472_x64\e_sqlite3.dll - 1911296", |
| 906 | @"release_net472_x86\e_sqlite3.dll - 1207296", | 906 | @"release_net472_x86\e_sqlite3.dll - 1503232", |
| 907 | @"release_net8_x64\e_sqlite3.dll - 1601536", | 907 | @"release_net8_x64\e_sqlite3.dll - 1911296", |
| 908 | @"release_net8_x86\e_sqlite3.dll - 1207296", | 908 | @"release_net8_x86\e_sqlite3.dll - 1503232", |
| 909 | }, releaseFileSizes); | 909 | }, releaseFileSizes); |
| 910 | } | 910 | } |
| 911 | } | 911 | } |
diff --git a/src/wix/test/WixToolsetTest.Sdk/TestData/MultiTargetingWixlib/TestExe/TestExe.csproj b/src/wix/test/WixToolsetTest.Sdk/TestData/MultiTargetingWixlib/TestExe/TestExe.csproj index f11c87a8..a231ee46 100644 --- a/src/wix/test/WixToolsetTest.Sdk/TestData/MultiTargetingWixlib/TestExe/TestExe.csproj +++ b/src/wix/test/WixToolsetTest.Sdk/TestData/MultiTargetingWixlib/TestExe/TestExe.csproj | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | </PropertyGroup> | 8 | </PropertyGroup> |
| 9 | 9 | ||
| 10 | <ItemGroup> | 10 | <ItemGroup> |
| 11 | <PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.0" /> | 11 | <PackageReference Include="Microsoft.Data.Sqlite.Core" Version="10.0.9" /> |
| 12 | <PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.3" /> | ||
| 12 | </ItemGroup> | 13 | </ItemGroup> |
| 13 | </Project> | 14 | </Project> |
diff --git a/src/xsd/wix/Upgrade.xsd b/src/xsd/wix/Upgrade.xsd index fb9b5845..1b94589c 100644 --- a/src/xsd/wix/Upgrade.xsd +++ b/src/xsd/wix/Upgrade.xsd | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | <annotation> | 14 | <annotation> |
| 15 | <documentation> | 15 | <documentation> |
| 16 | Nesting a Property element under an Upgrade element has been deprecated. | 16 | Nesting a Property element under an Upgrade element has been deprecated. |
| 17 | Please nest Property elements in any of the other supported locations. | 17 | Use ProductSearch instead. |
| 18 | </documentation> | 18 | </documentation> |
| 19 | </annotation> | 19 | </annotation> |
| 20 | </element> | 20 | </element> |
| @@ -25,4 +25,4 @@ | |||
| 25 | </annotation> | 25 | </annotation> |
| 26 | </attribute> | 26 | </attribute> |
| 27 | </complexType> | 27 | </complexType> |
| 28 | </element> \ No newline at end of file | 28 | </element> |
