File tree Expand file tree Collapse file tree 6 files changed +14
-15
lines changed
BlazingPizza.ComponentsLibrary Expand file tree Collapse file tree 6 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<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 >
7
7
</PropertyGroup >
8
8
</Project >
Original file line number Diff line number Diff line change 1
1
<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)" >
5
5
<NotAuthorized >
6
6
<RedirectToLogin />
7
7
</NotAuthorized >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web " >
1
+ <Project Sdk =" Microsoft.NET.Sdk.BlazorWebAssembly " >
2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >net5.0</TargetFramework >
5
- <RuntimeIdentifier >browser-wasm</RuntimeIdentifier >
6
- <UseBlazorWebAssembly >true</UseBlazorWebAssembly >
7
5
</PropertyGroup >
8
6
9
7
<ItemGroup >
10
8
<PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" $(BlazorVersion)" />
9
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" $(BlazorVersion)" PrivateAssets =" all" />
11
10
<PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version =" $(BlazorVersion)" />
12
11
<PackageReference Include =" Microsoft.Extensions.Http" Version =" $(SystemNetHttpJsonVersion)" />
13
12
<PackageReference Include =" System.Net.Http.Json" Version =" $(SystemNetHttpJsonVersion)" />
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class Program
12
12
public static async Task Main ( string [ ] args )
13
13
{
14
14
var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
15
- builder . RootComponents . Add < App > ( "app" ) ;
15
+ builder . RootComponents . Add < App > ( "# app" ) ;
16
16
17
17
builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
18
18
builder . Services . AddHttpClient < OrdersClient > ( client => client . BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) )
Original file line number Diff line number Diff line change 12
12
< title > Blazing Pizza</ title >
13
13
</ head >
14
14
< body >
15
- < app >
16
- < div class ="loading-bar "> </ div >
17
- </ app >
15
+ < div id ="app " class ="loading-bar "> </ div >
18
16
19
17
< div id ="blazor-error-ui ">
20
18
An unhandled error has occurred.
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Microsoft.AspNetCore.Components" Version =" $(AspNetCoreVersion)" />
9
9
<PackageReference Include =" Microsoft.AspNetCore.Components.Web" Version =" $(AspNetCoreVersion)" />
10
10
</ItemGroup >
11
-
11
+ <ItemGroup >
12
+ <SupportedPlatform Include =" browser" />
13
+ </ItemGroup >
12
14
</Project >
You can’t perform that action at this time.
0 commit comments