Skip to content

Commit

Permalink
Upgrade .NET SDK to .NET 8.0. Update OpenCC dictionary.
Browse files Browse the repository at this point in the history
Bump package version.
  • Loading branch information
CXuesong committed Aug 11, 2024
1 parent 1e63aea commit 7388059
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 26 deletions.
2 changes: 1 addition & 1 deletion OpenCCSharp.Benchmarking/OpenCCSharp.Benchmarking.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SignAssembly>False</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion OpenCCSharp.BuildTools/OpenCCSharp.BuildTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
7 changes: 5 additions & 2 deletions OpenCCSharp.Commons/OpenCCSharp.Commons.props
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<Project>
<!-- Placeholder -->
</Project>
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
10 changes: 5 additions & 5 deletions OpenCCSharp.Commons/OpenCCSharp.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

<PropertyGroup>
<!-- Here are the default targets. Projects may override on this value with higher requirements. -->
<TargetFrameworks>net6.0</TargetFrameworks>
<Version>0.0.1-int.5</Version>
<AssemblyVersion>0.0.1.5</AssemblyVersion>
<FileVersion>0.0.1.5</FileVersion>
<Copyright>Copyright (C) CXuesong 2022</Copyright>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<Version>0.0.1-int.6</Version>
<AssemblyVersion>0.0.1.6</AssemblyVersion>
<FileVersion>0.0.1.6</FileVersion>
<Copyright>Copyright (C) CXuesong 2024</Copyright>
<PackageReleaseNotes>See https://github.com/CXuesong/OpenCCSharp/releases .</PackageReleaseNotes>
<PackageTags>OpenCC Chinese Text Conversion</PackageTags>
<NeutralLanguage>en-us</NeutralLanguage>
Expand Down
6 changes: 3 additions & 3 deletions OpenCCSharp.ConsoleApp/OpenCCSharp.ConsoleApp.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Terminal.Gui" Version="1.7.2" />
<PackageReference Include="Terminal.Gui" Version="1.17.1" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions OpenCCSharp.Conversion/OpenCCSharp.Conversion.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
OpenCCSharp is a .NET library for Chinese handwritten script conversion.
This project is inspired by OpenCC project, and used similar approach in word segmentation.
</Description>
<TargetFrameworks>net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CXuesong.TriesSharp" Version="0.0.1-int.3" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
</ItemGroup>

</Project>
7 changes: 4 additions & 3 deletions OpenCCSharp.Presets/OpenCCSharp.Presets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
This project is inspired by OpenCC project, and used similar approach in word segmentation.
This project also used the conversion dictionary in the aforementioned project.
</Description>
<TargetFrameworks>net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand All @@ -30,6 +27,10 @@
<EmbeddedResource Include="ConversionDictionaries\**\*" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Error Condition="!Exists('$(ProjectDir)/ConversionDictionaries/')" Text="ConversionDictionaries folder is missing. Please execute OpenCCSharp.Commons/CI/PreBuild.ps1 to generate the folder." />
</Target>
Expand Down
14 changes: 7 additions & 7 deletions OpenCCSharp.UnitTest/OpenCCSharp.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
<Import Project="../OpenCCSharp.Commons/OpenCCSharp.Commons.props" />

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="O9d.Json.Formatting" Version="0.1.0" />
<PackageReference Include="System.Linq.Async" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion vendor/OpenCC
Submodule OpenCC updated 907 files

0 comments on commit 7388059

Please sign in to comment.