Skip to content

Commit 5cf2a2d

Browse files
committed
Minor improvements to Burn, tests, and doc.
1 parent 318f530 commit 5cf2a2d

3 files changed

Lines changed: 25 additions & 24 deletions

File tree

src/burn/engine/core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ extern "C" HRESULT CoreDetect(
383383
pEngineState->registration.fEligibleForCleanup = FALSE;
384384
}
385385

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));
387387

388388
if (BURN_PACKAGE_TYPE_MSI == pPackage->type)
389389
{

src/test/wix/WixE2E/WixE2EFixture.cs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -136,35 +136,36 @@ public void CanIncrementalBuildPackageWithNativeWindowsAppWithEdits()
136136
Assert.AreNotEqual(firstHashes, secondHashes);
137137
}
138138

139-
//[TestMethod]
139+
[Ignore]
140+
[TestMethod]
140141
//[Fact(Skip = "Investigate if .NET Core WebApplications can be incrementally built")]
141-
//public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits()
142-
//{
143-
// var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore");
144-
// var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj");
145-
// var projectBinPath = Path.Combine(projectDirectory, "bin");
142+
public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits()
143+
{
144+
var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore");
145+
var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj");
146+
var projectBinPath = Path.Combine(projectDirectory, "bin");
146147

147-
// CleanEverything();
148+
CleanEverything();
148149

149-
// var result = RestoreAndBuild(projectPath);
150-
// result.AssertSuccess();
150+
var result = RestoreAndBuild(projectPath);
151+
result.AssertSuccess();
151152

152-
// var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray();
153-
// var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray();
153+
var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray();
154+
var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray();
154155

155-
// //var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs");
156-
// //File.SetLastWriteTime(packageWxsPath, DateTime.Now);
156+
//var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs");
157+
//File.SetLastWriteTime(packageWxsPath, DateTime.Now);
157158

158-
// // This should be an incremental build that does work because a file was updated.
159-
// //
160-
// result = RestoreAndBuild(projectPath);
161-
// result.AssertSuccess();
159+
// This should be an incremental build that does work because a file was updated.
160+
//
161+
result = RestoreAndBuild(projectPath);
162+
result.AssertSuccess();
162163

163-
// var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray();
164-
// var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray();
164+
var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray();
165+
var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray();
165166

166-
// WixAssert.CompareLineByLine(firstHashes, secondHashes);
167-
//}
167+
WixAssert.CompareLineByLine(firstHashes, secondHashes);
168+
}
168169

169170
private static void CleanEverything()
170171
{

src/xsd/wix/Upgrade.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<annotation>
1515
<documentation>
1616
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.
1818
</documentation>
1919
</annotation>
2020
</element>
@@ -25,4 +25,4 @@
2525
</annotation>
2626
</attribute>
2727
</complexType>
28-
</element>
28+
</element>

0 commit comments

Comments
 (0)