feat(all): 调整项目关系

main
bicijinlian 2 years ago
parent 943ae85cb2
commit 850bb8005e

@ -1,4 +1,7 @@
<Router AppAssembly="@typeof(App).Assembly">
<Router
AppAssembly="@typeof(App).Assembly"
AdditionalAssemblies="@(new []{ typeof(BootstrapBlazorStudy.Shared.Shared.MainLayout).Assembly})"
>
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />

@ -1,4 +1,5 @@
@page "/"
@using BootstrapBlazorStudy.Shared;
@using Microsoft.AspNetCore.Components.Web
@namespace BootstrapBlazorStudy.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

@ -1,4 +1,14 @@
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop
@using BootstrapBlazor;
@using BootstrapBlazor.Components;
@using BootstrapBlazor.Localization;
@using BootstrapBlazorStudy.Shared;
@using BootstrapBlazorStudy.Shared.Pages;
@using BootstrapBlazorStudy.Shared.Shared;
@using BootstrapBlazorStudy.Shared.Components;
@using BootstrapBlazorStudy.Server

@ -18,4 +18,11 @@
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.9" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="BootstrapBlazor.Analyzers" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

@ -0,0 +1,3 @@
.test {
background-color:peru;
}

@ -0,0 +1 @@
console.log("BootstrapBlazorStudy.Shared项目,Test.razor组件Test.razor.js文件日志");

@ -0,0 +1,5 @@
global using BootstrapBlazor;
global using BootstrapBlazor.Components;
global using BootstrapBlazor.Localization;
global using BootstrapBlazorStudy.Shared;

@ -0,0 +1,8 @@
@page "/"
@page "/home"
@page "/index"
<h3>Home</h3>
@code {
}

@ -0,0 +1,6 @@
@page "/use-card"
<Card>ccc</Card>
@code {
}

@ -1 +1,13 @@
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.JSInterop
@using BootstrapBlazor;
@using BootstrapBlazor.Localization;
@using BootstrapBlazor.Components;
@using BootstrapBlazorStudy.Shared;
@using BootstrapBlazorStudy.Shared.Pages;
@using BootstrapBlazorStudy.Shared.Shared;

@ -1,4 +1,7 @@
<Router AppAssembly="@typeof(App).Assembly">
<Router
AppAssembly="@typeof(App).Assembly"
AdditionalAssemblies="@(new []{ typeof(BootstrapBlazorStudy.Shared.Shared.MainLayout).Assembly})"
>
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />

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

@ -1,3 +1,4 @@
using BootstrapBlazorStudy.Shared;
using BootstrapBlazorStudy.WASM;
using Microsoft.AspNetCore.Components.Web;

@ -4,4 +4,14 @@
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using BootstrapBlazor;
@using BootstrapBlazor.Components;
@using BootstrapBlazor.Localization;
@using BootstrapBlazorStudy.Shared;
@using BootstrapBlazorStudy.Shared.Pages;
@using BootstrapBlazorStudy.Shared.Shared;
@using BootstrapBlazorStudy.Shared.Components;
@using BootstrapBlazorStudy.WASM

@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BootstrapBlazorStudy.Shared", "BootstrapBlazorStudy.Shared\BootstrapBlazorStudy.Shared.csproj", "{BB71D86B-A872-4873-81DA-6FA130A401F4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorStudy.Shared", "BootstrapBlazorStudy.Shared\BootstrapBlazorStudy.Shared.csproj", "{BB71D86B-A872-4873-81DA-6FA130A401F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BootstrapBlazorStudy.WASM", "BootstrapBlazorStudy.WASM\BootstrapBlazorStudy.WASM.csproj", "{8B943532-7E1E-4F41-908C-3AEE19B15EE9}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorStudy.WASM", "BootstrapBlazorStudy.WASM\BootstrapBlazorStudy.WASM.csproj", "{8B943532-7E1E-4F41-908C-3AEE19B15EE9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BootstrapBlazorStudy.Server", "BootstrapBlazorStudy.Server\BootstrapBlazorStudy.Server.csproj", "{CE59C4FD-57EB-4403-8C1B-90939956A343}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorStudy.Server", "BootstrapBlazorStudy.Server\BootstrapBlazorStudy.Server.csproj", "{CE59C4FD-57EB-4403-8C1B-90939956A343}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{58BDDFA1-CF68-43C4-A8EF-C29ED02F3D03}"
ProjectSection(SolutionItems) = preProject

Loading…
Cancel
Save