调整文件

main
bicijinlian 1 year ago
parent aeb4ce84ed
commit d4b88cf515

@ -1,12 +0,0 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>

@ -10,4 +10,8 @@
<ProjectReference Include="..\BlazorSharedDemo.SharedUI\BlazorSharedDemo.SharedUI.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Shared\" />
</ItemGroup>
</Project>

@ -1,3 +0,0 @@
@inherits LayoutComponentBase
<main> @Body </main>

@ -1,3 +1,3 @@
@page "/"
<h1>Hello, world!</h1>
<h1>ServerApp Hello!</h1>

@ -1,4 +1,5 @@
@page "/"
@using BlazorSharedDemo.SharedUI;
@using Microsoft.AspNetCore.Components.Web
@namespace BlazorSharedDemo.ServerApp.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

@ -1,4 +1,7 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop
@using BlazorSharedDemo.SharedUI;
@using BlazorSharedDemo.ServerApp

@ -16,7 +16,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Pages\" />
<Folder Include="Services\" />
<Folder Include="Shared\" />
<Folder Include="Models\" />

@ -0,0 +1,7 @@

@page "/"
<h3>SharedUI Hello!</h3>
@code {
}

@ -1,8 +1,9 @@
using BlazorSharedDemo.WaslApp;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using BlazorSharedDemo.SharedUI;
using BlazorSharedDemo.WaslApp;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");

@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33712.159
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorSharedDemo.SharedUI", "BlazorSharedDemo.SharedUI\BlazorSharedDemo.SharedUI.csproj", "{AF0869F6-7176-4AB1-B79F-5C7651D36606}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorSharedDemo.SharedUI", "BlazorSharedDemo.SharedUI\BlazorSharedDemo.SharedUI.csproj", "{AF0869F6-7176-4AB1-B79F-5C7651D36606}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorSharedDemo.ServerApp", "BlazorSharedDemo.ServerApp\BlazorSharedDemo.ServerApp.csproj", "{2A713A1E-6F33-4F66-A6B9-A8264BA01270}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorSharedDemo.ServerApp", "BlazorSharedDemo.ServerApp\BlazorSharedDemo.ServerApp.csproj", "{2A713A1E-6F33-4F66-A6B9-A8264BA01270}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorSharedDemo.WaslApp", "BlazorSharedDemo.WaslApp\BlazorSharedDemo.WaslApp.csproj", "{7DE872E2-729B-413A-BAA7-2BD2B9089568}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorSharedDemo.WaslApp", "BlazorSharedDemo.WaslApp\BlazorSharedDemo.WaslApp.csproj", "{7DE872E2-729B-413A-BAA7-2BD2B9089568}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Loading…
Cancel
Save