Skip to content

Commit

Permalink
refactor: 升级到 .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxue committed Nov 20, 2023
1 parent 3b74723 commit c9341fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
4 changes: 2 additions & 2 deletions DocsifyBuildSidebar.sln
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 5 additions & 8 deletions DocsifyBuildSidebar/DocsifyBuildSidebar.csproj
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions DocsifyBuildSidebar/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
};

Expand Down
9 changes: 2 additions & 7 deletions DocsifyBuildSidebarTests/DocsifyBuildSidebarTests.csproj
Original file line number Diff line number Diff line change
@@ -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" />
Expand All @@ -21,9 +18,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DocsifyBuildSidebar\DocsifyBuildSidebar.csproj" />
</ItemGroup>

</Project>
</Project>

0 comments on commit c9341fa

Please sign in to comment.