Compare commits

...

3 Commits

Author SHA1 Message Date
Chenx221 b78416fbdb upgrade to .net 8.0 2024-03-08 13:57:22 +08:00
Chenx221 db520a3833 更新依赖包 2024-03-08 13:53:20 +08:00
Chenx221 2a064be75f update 1.0.0.3 2023-10-01 20:06:05 +08:00
3 changed files with 13 additions and 14 deletions

View File

@ -1,9 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33829.357
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{A4F374FF-7AA7-4360-9597-0E66D6D4D1EC}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Comic2PDF", "ConsoleApp1\Comic2PDF.csproj", "{A4F374FF-7AA7-4360-9597-0E66D6D4D1EC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<OutputType>Exe</OutputType>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
@ -29,13 +29,13 @@
<ManifestKeyFile>ConsoleApp1_TemporaryKey.pfx</ManifestKeyFile>
<AssemblyTitle>Comic PDF Helper</AssemblyTitle>
<Description>批量转换图像为PDF的小工具</Description>
<Product>ConsoleApp1</Product>
<Product>Comic2PDF</Product>
<Copyright>Copyright © Chenx221 2023</Copyright>
<AssemblyVersion>1.0.0.2</AssemblyVersion>
<FileVersion>1.0.0.2</FileVersion>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
<AssemblyVersion>1.0.0.3</AssemblyVersion>
<FileVersion>1.0.0.3</FileVersion>
<StartupObject>ConsoleApp1.Program</StartupObject>
<PlatformTarget>AnyCPU</PlatformTarget>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.8.1">
@ -50,11 +50,10 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.2.1" />
<PackageReference Include="itext7" Version="8.0.1" />
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.1" />
<PackageReference Include="itext7.bouncy-castle-fips-adapter" Version="8.0.1" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />
<PackageReference Include="itext7" Version="8.0.3" />
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.3" />
<PackageReference Include="itext7.bouncy-castle-fips-adapter" Version="8.0.3" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
</Project>

View File

@ -8,6 +8,7 @@ using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using System.Numerics;
namespace ConsoleApp1
{
@ -157,8 +158,8 @@ namespace ConsoleApp1
int matchCount = Math.Min(matchesX.Count, matchesY.Count);
for (int i = 0; i < matchCount; i++)
{
int numX = int.Parse(matchesX[i].Value);
int numY = int.Parse(matchesY[i].Value);
BigInteger numX = BigInteger.Parse(matchesX[i].Value);
BigInteger numY = BigInteger.Parse(matchesY[i].Value);
int numComparison = numX.CompareTo(numY);
if (numComparison != 0)