File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 </PropertyGroup >
99
1010 <ItemGroup >
11+ <PackageReference Include =" BlazorWasmPreRendering.Build" Version =" 7.0.0" />
1112 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 10.0.0" />
1213 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 10.0.0" PrivateAssets =" all" />
1314 <PackageReference Include =" Microsoft.FluentUI.AspNetCore.Components" Version =" 4.13.2" />
Original file line number Diff line number Diff line change 77builder . RootComponents . Add < App > ( "#app" ) ;
88builder . RootComponents . Add < HeadOutlet > ( "head::after" ) ;
99
10- builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
11- builder . Services . AddFluentUIComponents ( ) ;
10+ ConfigureServices ( builder . Services , builder . HostEnvironment . BaseAddress ) ;
1211
1312await builder . Build ( ) . RunAsync ( ) ;
13+
14+ static void ConfigureServices ( IServiceCollection services , string baseAddress )
15+ {
16+ services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( baseAddress ) } ) ;
17+ services . AddFluentUIComponents ( ) ;
18+ }
You can’t perform that action at this time.
0 commit comments