File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
TestHostPrerenderWASM/TestHostPrerenderWASM.Client Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -424,11 +424,13 @@ jobs:
424424 INDEPENDENT_CLIENT_GH_PAGES : true
425425 run : |
426426 dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
427+ /p:INDEPENDENT_CLIENT_GH_PAGES=true \
427428 /p:BCLVersion=$BCL_VERSION \
428429 /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
429430 /p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
430431 /p:GhPageRelease=true \
431432 /p:LocalPackagePath=$BCL_Source
433+
432434
433435 - name : Debug - List all files in docs folder
434436 run : |
Original file line number Diff line number Diff line change 77
88
99
10+ Console . WriteLine ( $ "INDEPENDENT_CLIENT_GH_PAGES value: '{ Environment . GetEnvironmentVariable ( "INDEPENDENT_CLIENT_GH_PAGES" ) } '") ;
11+
1012if ( Environment . GetEnvironmentVariable ( "INDEPENDENT_CLIENT_GH_PAGES" ) != null )
1113{
14+ Console . WriteLine ( "Condition is TRUE - Adding root components" ) ;
1215 builder . RootComponents . Add < App > ( "#app" ) ;
1316 builder . RootComponents . Add < HeadOutlet > ( "head::after" ) ;
1417 builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
1518}
19+ else
20+ {
21+ Console . WriteLine ( "Condition is FALSE - Environment variable is null" ) ;
22+ }
1623
1724
1825await builder . Build ( ) . RunAsync ( ) ;
You can’t perform that action at this time.
0 commit comments