@@ -106,7 +106,7 @@ public async Task Including_ServerSide_Middleware_from_AssemblyMetaData_TestAsyn
106
106
var serverPort = Program . GetAvailableTcpPort ( "5050-5999" ) ;
107
107
108
108
using var dotnetCLI = Start (
109
- "dotnet" , $ "publish -c:Release -p:PublishTrimmed=false -p:BlazorWasmPrerenderingKeepServer=true -p:BlazorEnableCompression =false -p:UsingBrowserRuntimeWorkload=false -p:BlazorWasmPrerenderingServerPort={ serverPort } ",
109
+ "dotnet" , $ "publish -c:Release -p:PublishTrimmed=false -p:BlazorWasmPrerenderingKeepServer=true -p:CompressionEnabled =false -p:UsingBrowserRuntimeWorkload=false -p:BlazorWasmPrerenderingServerPort={ serverPort } ",
110
110
projectDir ,
111
111
options => options . WhenDisposing = XProcessTerminate . EntireProcessTree ) ;
112
112
var success = await dotnetCLI . WaitForOutputAsync ( output => output . Trim ( ) . StartsWith ( "Start fetching..." ) , millsecondsTimeout : 40000 ) ;
@@ -328,7 +328,7 @@ public async Task Publish_Test()
328
328
Console . WriteLine ( $ "{ ( i == 1 ? "1st" : "2nd" ) } time publishing...") ;
329
329
330
330
// When
331
- var arg = "publish -c:Release -p:BlazorEnableCompression =false -p:UsingBrowserRuntimeWorkload=false -o:bin/publish" ;
331
+ var arg = "publish -c:Release -p:CompressionEnabled =false -p:UsingBrowserRuntimeWorkload=false -o:bin/publish" ;
332
332
// if 2nd time publishing, override the environment name.
333
333
if ( i == 2 ) arg += " -p:BlazorWasmPrerenderingEnvironment=" + expectedEnvNames [ 2 ] ;
334
334
@@ -374,7 +374,7 @@ public async Task Publish_by_native_msbuild_Test()
374
374
// When
375
375
await Start ( "dotnet" , "restore" , app0Dir ) . WaitForExitAsync ( ) ;
376
376
var msbuild = await Start ( msbuildPath ,
377
- "-p:Configuration=Debug -p:BlazorEnableCompression =false -p:DeployOnBuild=true -p:PublishUrl=bin/publish" ,
377
+ "-p:Configuration=Debug -p:CompressionEnabled =false -p:DeployOnBuild=true -p:PublishUrl=bin/publish" ,
378
378
app0Dir ) . WaitForExitAsync ( ) ;
379
379
msbuild . ExitCode . Is ( 0 , message : msbuild . StdOutput + msbuild . StdError ) ;
380
380
@@ -399,7 +399,7 @@ public async Task Publish_by_msbuild_Test()
399
399
// When
400
400
await Start ( "dotnet" , "restore" , app0Dir ) . WaitForExitAsync ( ) ;
401
401
var dotnetCLI = await Start ( "dotnet" ,
402
- "msbuild -p:Configuration=Debug -p:BlazorEnableCompression =false -p:DeployOnBuild=true -p:PublishUrl=bin/publish" ,
402
+ "msbuild -p:Configuration=Debug -p:CompressionEnabled =false -p:DeployOnBuild=true -p:PublishUrl=bin/publish" ,
403
403
app0Dir ) . WaitForExitAsync ( ) ;
404
404
dotnetCLI . ExitCode . Is ( 0 , message : dotnetCLI . StdOutput + dotnetCLI . StdError ) ;
405
405
@@ -426,7 +426,7 @@ public async Task Publish_with_HTTP500_Test(string env, bool msg1, bool msg2)
426
426
var dotnetCLI = await Start ( "dotnet" , "publish " +
427
427
$ "-c:Release " +
428
428
$ "-p:BlazorWasmPrerenderingEnvironment={ env } " +
429
- $ "-p:BlazorEnableCompression =false " +
429
+ $ "-p:CompressionEnabled =false " +
430
430
$ "-p:BlazorWasmPrerenderingServerPort={ tcpPort } " +
431
431
$ "--nologo",
432
432
projectDir ) . WaitForExitAsync ( ) ;
@@ -462,7 +462,7 @@ public async Task Publish_BlazorWasmAntivirusProtection_Test(string obfuscationM
462
462
{
463
463
$ "publish",
464
464
$ "-c:Release",
465
- $ "-p:BlazorEnableCompression =false",
465
+ $ "-p:CompressionEnabled =false",
466
466
$ "-p:UsingBrowserRuntimeWorkload=false",
467
467
$ "-p:BlazorWasmPrerenderingServerPort={ tcpPort } ",
468
468
$ "-o:bin/publish",
@@ -491,7 +491,7 @@ public async Task AppSettings_Test()
491
491
File . WriteAllText ( Path . Combine ( projectDir , "wwwroot" , "appsettings.json" ) , @"{""HomeTitle"":""127.0.0.1""}" ) ;
492
492
493
493
// When
494
- var dotnetCLI = await XProcess . Start ( "dotnet" , "publish -c:Debug -p:BlazorEnableCompression =false -o:bin/publish" , projectDir ) . WaitForExitAsync ( ) ;
494
+ var dotnetCLI = await XProcess . Start ( "dotnet" , "publish -c:Debug -p:CompressionEnabled =false -o:bin/publish" , projectDir ) . WaitForExitAsync ( ) ;
495
495
dotnetCLI . ExitCode . Is ( 0 , message : dotnetCLI . StdOutput + dotnetCLI . StdError ) ;
496
496
497
497
// Then
@@ -541,7 +541,7 @@ public async Task ServeDotFile_Test()
541
541
var serverPort = Program . GetAvailableTcpPort ( "5050-5999" ) ;
542
542
543
543
using var dotnetCLI = Start (
544
- "dotnet" , $ "publish -c:Release -p:PublishTrimmed=false -p:BlazorWasmPrerenderingKeepServer=true -p:BlazorEnableCompression =false -p:UsingBrowserRuntimeWorkload=false -p:BlazorWasmPrerenderingServerPort={ serverPort } ",
544
+ "dotnet" , $ "publish -c:Release -p:PublishTrimmed=false -p:BlazorWasmPrerenderingKeepServer=true -p:CompressionEnabled =false -p:UsingBrowserRuntimeWorkload=false -p:BlazorWasmPrerenderingServerPort={ serverPort } ",
545
545
projectDir ,
546
546
options => options . WhenDisposing = XProcessTerminate . EntireProcessTree ) ;
547
547
var success = await dotnetCLI . WaitForOutputAsync ( output => output . Trim ( ) . StartsWith ( "Start fetching..." ) , millsecondsTimeout : 40000 ) ;
0 commit comments