From 4099e77d0f1be9377dac61cb328bd5a9339be949 Mon Sep 17 00:00:00 2001 From: luxuia Date: Sat, 22 Jun 2024 22:07:50 +0800 Subject: [PATCH] update version --- ExcelMerge.sln | 14 +++++--------- ExcelMerge/ExcelMerge.csproj | 2 +- ExcelMerge/Util.cs | 6 ++++-- ExcelMerge/YAMLDifferWindow.xaml.cs | 1 - 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ExcelMerge.sln b/ExcelMerge.sln index ffdb8c1..d622192 100644 --- a/ExcelMerge.sln +++ b/ExcelMerge.sln @@ -1,14 +1,10 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.8.34227.203 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExcelMerge", "ExcelMerge\ExcelMerge.csproj", "{09AA7F86-7EF6-44D4-98D9-916D4E2FC258}" - ProjectSection(ProjectDependencies) = postProject - {B666D83B-68A5-482E-A2AD-91D0E3038784} = {B666D83B-68A5-482E-A2AD-91D0E3038784} - EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnityYamlParser", "UnityYamlParser\UnityYamlParser.csproj", "{B666D83B-68A5-482E-A2AD-91D0E3038784}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnityYamlParser", "UnityYamlParser\UnityYamlParser.csproj", "{3EB4337C-A0A9-4CD6-98E2-547ADE0EC58B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -20,10 +16,10 @@ Global {09AA7F86-7EF6-44D4-98D9-916D4E2FC258}.Debug|Any CPU.Build.0 = Debug|Any CPU {09AA7F86-7EF6-44D4-98D9-916D4E2FC258}.Release|Any CPU.ActiveCfg = Release|Any CPU {09AA7F86-7EF6-44D4-98D9-916D4E2FC258}.Release|Any CPU.Build.0 = Release|Any CPU - {B666D83B-68A5-482E-A2AD-91D0E3038784}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B666D83B-68A5-482E-A2AD-91D0E3038784}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B666D83B-68A5-482E-A2AD-91D0E3038784}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B666D83B-68A5-482E-A2AD-91D0E3038784}.Release|Any CPU.Build.0 = Release|Any CPU + {3EB4337C-A0A9-4CD6-98E2-547ADE0EC58B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3EB4337C-A0A9-4CD6-98E2-547ADE0EC58B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3EB4337C-A0A9-4CD6-98E2-547ADE0EC58B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3EB4337C-A0A9-4CD6-98E2-547ADE0EC58B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ExcelMerge/ExcelMerge.csproj b/ExcelMerge/ExcelMerge.csproj index 17c15b5..d8902fc 100644 --- a/ExcelMerge/ExcelMerge.csproj +++ b/ExcelMerge/ExcelMerge.csproj @@ -75,7 +75,7 @@ - + diff --git a/ExcelMerge/Util.cs b/ExcelMerge/Util.cs index 78c8f1c..ccce4a9 100644 --- a/ExcelMerge/Util.cs +++ b/ExcelMerge/Util.cs @@ -92,20 +92,22 @@ public static SolidColorBrush GetColorByDiffStatus(DiffStatus status) { public static IWorkbook GetWorkBook(string file) { IWorkbook book = null; + /* try { using (var s = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { - book = WorkbookFactory.Create(s); + book = WorkbookFactory.Create(s, true); } } finally + */ { if (book == null) { using (var s = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read)) { - book = WorkbookFactory.Create(s); + book = WorkbookFactory.Create(s, true); } } } diff --git a/ExcelMerge/YAMLDifferWindow.xaml.cs b/ExcelMerge/YAMLDifferWindow.xaml.cs index 0937b32..0dac9a5 100644 --- a/ExcelMerge/YAMLDifferWindow.xaml.cs +++ b/ExcelMerge/YAMLDifferWindow.xaml.cs @@ -15,7 +15,6 @@ using System.Windows.Media.Imaging; using System.Windows.Shapes; using UnityYamlParser; -using static Org.BouncyCastle.Math.EC.ECCurve; using static System.Reflection.Metadata.BlobBuilder; namespace ExcelMerge