File tree Expand file tree Collapse file tree 4 files changed +32
-16
lines changed
TestHostPrerenderWASM.Client Expand file tree Collapse file tree 4 files changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,8 @@ jobs:
420420
421421
422422 - name : Publish client using client release .csproj logic
423+ env :
424+ INDEPENDANT_CLIENT_GH_PAGES : true
423425 run : |
424426 dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
425427 /p:BCLVersion=$BCL_VERSION \
Original file line number Diff line number Diff line change 1414 builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
1515
1616}
17+
18+ if ( Environment . GetEnvironmentVariable ( "INDEPENDANT_CLIENT_GH_PAGES" ) != null )
19+ {
20+ builder . RootComponents . Add < App > ( "#app" ) ;
21+ builder . RootComponents . Add < HeadOutlet > ( "head::after" ) ;
22+ builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
23+ }
24+
1725//#if GH_PAGE_RELEASE //put something like this back in
1826//builder.RootComponents.Add<App>("#app");
1927//builder.RootComponents.Add<HeadOutlet>("head::after");
Original file line number Diff line number Diff line change 245245 "type" : " Project" ,
246246 "dependencies" : {
247247 "Microsoft.AspNetCore.Components.Web" : " [8.0.14, )" ,
248- "TELBlazorComponentLibrary.GitPageBlazorWasm" : " [10.9.4, )"
249- }
250- },
251- "TELBlazorComponentLibrary.GitPageBlazorWasm" : {
252- "type" : " Project" ,
253- "dependencies" : {
254- "Microsoft.AspNetCore.Components.Web" : " [8.0.14, )" ,
255- "Microsoft.Extensions.Http" : " [8.0.0, )"
248+ "TELBlazorComponentLibrary.GitPageBlazorWasm" : " [10.9.7, )"
256249 }
257250 },
258251 "Microsoft.AspNetCore.Components.Web" : {
282275 "Microsoft.Extensions.Logging.Abstractions" : " 8.0.0" ,
283276 "Microsoft.Extensions.Options" : " 8.0.0"
284277 }
278+ },
279+ "TELBlazorComponentLibrary.GitPageBlazorWasm" : {
280+ "type" : " CentralTransitive" ,
281+ "requested" : " [10.9.7, )" ,
282+ "resolved" : " 10.9.7" ,
283+ "contentHash" : " +dWmXBnL84HBWfTGiYZOxK8UGITQHbp4IO6bso+naGa9IxYNjcsOCjY/uczQmBfUPsuCZS/BKLq8Aznm5+Q4iA==" ,
284+ "dependencies" : {
285+ "Microsoft.AspNetCore.Components.Web" : " 8.0.14" ,
286+ "Microsoft.Extensions.Http" : " 8.0.0"
287+ }
285288 }
286289 },
287290 "net8.0/browser-wasm" : {}
Original file line number Diff line number Diff line change 220220 "type" : " Project" ,
221221 "dependencies" : {
222222 "Microsoft.AspNetCore.Components.Web" : " [8.0.14, )" ,
223- "TELBlazorComponentLibrary.GitPageBlazorWasm" : " [10.9.4, )"
224- }
225- },
226- "TELBlazorComponentLibrary.GitPageBlazorWasm" : {
227- "type" : " Project" ,
228- "dependencies" : {
229- "Microsoft.AspNetCore.Components.Web" : " [8.0.14, )" ,
230- "Microsoft.Extensions.Http" : " [8.0.0, )"
223+ "TELBlazorComponentLibrary.GitPageBlazorWasm" : " [10.9.7, )"
231224 }
232225 },
233226 "testhostprerenderwasm.client" : {
284277 "Microsoft.Extensions.Logging.Abstractions" : " 8.0.0" ,
285278 "Microsoft.Extensions.Options" : " 8.0.0"
286279 }
280+ },
281+ "TELBlazorComponentLibrary.GitPageBlazorWasm" : {
282+ "type" : " CentralTransitive" ,
283+ "requested" : " [10.9.7, )" ,
284+ "resolved" : " 10.9.7" ,
285+ "contentHash" : " +dWmXBnL84HBWfTGiYZOxK8UGITQHbp4IO6bso+naGa9IxYNjcsOCjY/uczQmBfUPsuCZS/BKLq8Aznm5+Q4iA==" ,
286+ "dependencies" : {
287+ "Microsoft.AspNetCore.Components.Web" : " 8.0.14" ,
288+ "Microsoft.Extensions.Http" : " 8.0.0"
289+ }
287290 }
288291 }
289292 }
You can’t perform that action at this time.
0 commit comments