Skip to content

Commit

Permalink
update to preview 4
Browse files Browse the repository at this point in the history
  • Loading branch information
chanan committed Apr 22, 2020
1 parent 2e942c0 commit 4433bc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ClientSideSample/ClientSideSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-preview3.20168.3" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-preview3.20168.3" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-preview4.20210.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-preview4.20210.8" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-preview4.20210.8" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="3.2.0-preview4.20210.8" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/ClientSideSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using Microsoft.Extensions.DependencyInjection;
using SampleCore;
using System.Threading.Tasks;
using System.Net.Http;
using System;

namespace ClientSideSample
{
Expand All @@ -15,7 +17,6 @@ public static async Task Main(string[] args)
//Configure Services

//AddBlazorStyled is needed for BlazorStyled to work
builder.Services.AddBaseAddressHttpClient();
builder.Services.AddBlazorStyled(isDevelopment: false, isDebug: false);

//The following is only used by the sample sites and is not required for BlazorStyled to work
Expand All @@ -25,7 +26,7 @@ public static async Task Main(string[] args)

builder.RootComponents.Add<App>("app");

builder.Services.AddBaseAddressHttpClient();
builder.Services.AddSingleton(new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

await builder.Build().RunAsync();
}
Expand Down
2 changes: 1 addition & 1 deletion src/HostedSample/HostedSample.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="3.2.0-preview4.20210.8" />
</ItemGroup>

</Project>

0 comments on commit 4433bc5

Please sign in to comment.