Skip to content

Commit 0826c51

Browse files
committed
Update BlazorWASM package
1 parent 6fc8b5a commit 0826c51

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

‎SpotifyAPI.Web.Examples/Example.BlazorWASM/Example.BlazorWASM.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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" />
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
using System;
22
using System.Net.Http;
3-
using System.Collections.Generic;
43
using System.Threading.Tasks;
5-
using System.Text;
64
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
7-
using Microsoft.Extensions.Configuration;
85
using Microsoft.Extensions.DependencyInjection;
9-
using Microsoft.Extensions.Logging;
106

117
namespace 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
}

0 commit comments

Comments
 (0)