From c9341fa4743d2b58897e1891bc1abd439a3de3d9 Mon Sep 17 00:00:00 2001 From: xxxue <1659809758@qq.com> Date: Mon, 20 Nov 2023 18:19:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8D=87=E7=BA=A7=E5=88=B0=20.net?= =?UTF-8?q?=208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DocsifyBuildSidebar.sln | 4 ++-- DocsifyBuildSidebar/DocsifyBuildSidebar.csproj | 13 +++++-------- DocsifyBuildSidebar/Utils.cs | 4 ++-- .../DocsifyBuildSidebarTests.csproj | 9 ++------- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/DocsifyBuildSidebar.sln b/DocsifyBuildSidebar.sln index 5f5623f..104fccb 100644 --- a/DocsifyBuildSidebar.sln +++ b/DocsifyBuildSidebar.sln @@ -1,11 +1,11 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.5.33516.290 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocsifyBuildSidebar", "DocsifyBuildSidebar\DocsifyBuildSidebar.csproj", "{7B85196D-D0E6-4724-BF44-1FA2917797B5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocsifyBuildSidebarTests", "DocsifyBuildSidebarTests\DocsifyBuildSidebarTests.csproj", "{D4C87DBB-8C34-4B9A-90D6-EF00911C759E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocsifyBuildSidebarTests", "DocsifyBuildSidebarTests\DocsifyBuildSidebarTests.csproj", "{D4C87DBB-8C34-4B9A-90D6-EF00911C759E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/DocsifyBuildSidebar/DocsifyBuildSidebar.csproj b/DocsifyBuildSidebar/DocsifyBuildSidebar.csproj index 5587f69..e1af9ea 100644 --- a/DocsifyBuildSidebar/DocsifyBuildSidebar.csproj +++ b/DocsifyBuildSidebar/DocsifyBuildSidebar.csproj @@ -1,20 +1,17 @@ -<Project Sdk="Microsoft.NET.Sdk"> - +<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net7.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <TrimMode>partial</TrimMode> <ImplicitUsings>true</ImplicitUsings> + <JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault> </PropertyGroup> - <ItemGroup> - <PackageReference Include="Spectre.Console" Version="0.45.0" /> + <PackageReference Include="Spectre.Console" Version="0.47.0" /> </ItemGroup> - <ItemGroup> <None Update="Config\Config.json"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> </ItemGroup> - -</Project> +</Project> \ No newline at end of file diff --git a/DocsifyBuildSidebar/Utils.cs b/DocsifyBuildSidebar/Utils.cs index e87504a..8b9e23c 100644 --- a/DocsifyBuildSidebar/Utils.cs +++ b/DocsifyBuildSidebar/Utils.cs @@ -135,13 +135,13 @@ public static void ShowLogo() //Console.SetWindowSize(150, Console.WindowHeight); var logo = new FigletText("build sidebar") - .LeftAligned() + .LeftJustified() .Color(Color.Yellow); AnsiConsole.Write(logo); var rule = new Rule("[red]build sidebar for c#[/]") { - Alignment = Justify.Center, + Justification = Justify.Center, Style = Style.Parse("red dim") }; diff --git a/DocsifyBuildSidebarTests/DocsifyBuildSidebarTests.csproj b/DocsifyBuildSidebarTests/DocsifyBuildSidebarTests.csproj index fb853cc..4422bc7 100644 --- a/DocsifyBuildSidebarTests/DocsifyBuildSidebarTests.csproj +++ b/DocsifyBuildSidebarTests/DocsifyBuildSidebarTests.csproj @@ -1,14 +1,11 @@ <Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> - <IsPackable>false</IsPackable> <IsTestProject>true</IsTestProject> </PropertyGroup> - <ItemGroup> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" /> <PackageReference Include="xunit" Version="2.4.2" /> @@ -21,9 +18,7 @@ <PrivateAssets>all</PrivateAssets> </PackageReference> </ItemGroup> - <ItemGroup> <ProjectReference Include="..\DocsifyBuildSidebar\DocsifyBuildSidebar.csproj" /> </ItemGroup> - -</Project> +</Project> \ No newline at end of file