File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk.Web" >
1+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
44 <IsWebProject >true</IsWebProject >
Original file line number Diff line number Diff line change 1- @if (IsNet10OrGreater )
2- {
3- <Router AppAssembly =" @typeof(Program).Assembly" NotFoundPage =" typeof(Pages.NotFound)" >
4- <Found Context =" routeData" >
5- <RouteView RouteData =" @routeData" DefaultLayout =" @typeof(MainLayout)" />
6- <FocusOnNavigate RouteData =" routeData" Selector =" h3" />
7- </Found >
8- </Router >
9- }
10- else
11- {
12- <Router AppAssembly =" @typeof(Program).Assembly" >
13- <Found Context =" routeData" >
14- <RouteView RouteData =" @routeData" DefaultLayout =" @typeof(MainLayout)" />
15- <FocusOnNavigate RouteData =" routeData" Selector =" h3" />
16- </Found >
17- </Router >
18- }
19-
20- @code {
21- #if NET10_0_OR_GREATER
22- private bool IsNet10OrGreater => true ;
23- #else
24- private bool IsNet10OrGreater => false ;
25- #endif
26- }
1+ <Router AppAssembly =" @typeof(Program).Assembly" NotFoundPage =" typeof(Pages.NotFound)" >
2+ <Found Context =" routeData" >
3+ <RouteView RouteData =" @routeData" DefaultLayout =" @typeof(MainLayout)" />
4+ <FocusOnNavigate RouteData =" routeData" Selector =" h3" />
5+ </Found >
6+ </Router >
You can’t perform that action at this time.
0 commit comments