Skip to content

Commit e374318

Browse files
author
Artak Mkrtchyan
committed
Upgraded to 5.0-rc2
1 parent fddeba9 commit e374318

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
3-
<AspNetCoreVersion>5.0.0-preview.7.20326.3</AspNetCoreVersion>
4-
<BlazorVersion>5.0.0-preview.7.20326.3</BlazorVersion>
5-
<EntityFrameworkVersion>5.0.0-preview.7.20326.1</EntityFrameworkVersion>
6-
<SystemNetHttpJsonVersion>5.0.0-preview.7.20326.1</SystemNetHttpJsonVersion>
3+
<AspNetCoreVersion>5.0.0-rc.2.*</AspNetCoreVersion>
4+
<BlazorVersion>5.0.0-rc.2.*</BlazorVersion>
5+
<EntityFrameworkVersion>5.0.0-rc.2.*</EntityFrameworkVersion>
6+
<SystemNetHttpJsonVersion>5.0.0-rc.2.*</SystemNetHttpJsonVersion>
77
</PropertyGroup>
88
</Project>

src/BlazingPizza.Client/App.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CascadingAuthenticationState>
2-
<Router AppAssembly="typeof(Program).Assembly" Context="routeData">
3-
<Found>
4-
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
2+
<Router AppAssembly="typeof(Program).Assembly">
3+
<Found Context="routeData">
4+
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
55
<NotAuthorized>
66
<RedirectToLogin />
77
</NotAuthorized>

src/BlazingPizza.Client/BlazingPizza.Client.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
6-
<UseBlazorWebAssembly>true</UseBlazorWebAssembly>
75
</PropertyGroup>
86

97
<ItemGroup>
108
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(BlazorVersion)" />
9+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="$(BlazorVersion)" PrivateAssets="all" />
1110
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="$(BlazorVersion)" />
1211
<PackageReference Include="Microsoft.Extensions.Http" Version="$(SystemNetHttpJsonVersion)" />
1312
<PackageReference Include="System.Net.Http.Json" Version="$(SystemNetHttpJsonVersion)" />

src/BlazingPizza.Client/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Program
1212
public static async Task Main(string[] args)
1313
{
1414
var builder = WebAssemblyHostBuilder.CreateDefault(args);
15-
builder.RootComponents.Add<App>("app");
15+
builder.RootComponents.Add<App>("#app");
1616

1717
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1818
builder.Services.AddHttpClient<OrdersClient>(client => client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))

src/BlazingPizza.Client/wwwroot/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
<title>Blazing Pizza</title>
1313
</head>
1414
<body>
15-
<app>
16-
<div class="loading-bar"></div>
17-
</app>
15+
<div id="app" class="loading-bar"></div>
1816

1917
<div id="blazor-error-ui">
2018
An unhandled error has occurred.

src/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(AspNetCoreVersion)" />
99
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(AspNetCoreVersion)" />
1010
</ItemGroup>
11-
11+
<ItemGroup>
12+
<SupportedPlatform Include="browser" />
13+
</ItemGroup>
1214
</Project>

0 commit comments

Comments
 (0)