File tree Expand file tree Collapse file tree
SpotifyAPI.Web.Examples/Example.BlazorWASM Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 </PropertyGroup >
77
88 <ItemGroup >
9- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 3.2.1 " />
9+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 5.0.0 " />
1010 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Build" Version =" 3.2.1" PrivateAssets =" all" />
1111 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 5.0.0" PrivateAssets =" all" />
1212 <PackageReference Include =" System.Net.Http.Json" Version =" 5.0.0" />
Original file line number Diff line number Diff line change 11using System ;
22using System . Net . Http ;
3- using System . Collections . Generic ;
43using System . Threading . Tasks ;
5- using System . Text ;
64using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
7- using Microsoft . Extensions . Configuration ;
85using Microsoft . Extensions . DependencyInjection ;
9- using Microsoft . Extensions . Logging ;
106
117namespace Example . BlazorWASM
128{
13- public class Program
9+ public class Program
10+ {
11+ public static async Task Main ( string [ ] args )
1412 {
15- public static async Task Main ( string [ ] args )
16- {
17- var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
18- builder . RootComponents . Add < App > ( "app" ) ;
13+ var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
14+ builder . RootComponents . Add < App > ( "app" ) ;
1915
20- builder . Services . AddTransient ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
16+ builder . Services . AddTransient ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
2117
22- await builder . Build ( ) . RunAsync ( ) ;
23- }
18+ await builder . Build ( ) . RunAsync ( ) ;
2419 }
20+ }
2521}
You can’t perform that action at this time.
0 commit comments