@@ -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 {
0 commit comments