diff --git a/ExcelLoader.cs b/ExcelLoader.cs index 9ee4248..eff8121 100644 --- a/ExcelLoader.cs +++ b/ExcelLoader.cs @@ -13,7 +13,7 @@ class ExcelLoader { // TODO: add Sheet Struct Define public ExcelLoader(string filePath, int headerRow) { - using (var stream = File.Open(filePath, FileMode.Open, FileAccess.Read)) { + using (var stream = File.Open(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { // Auto-detect format, supports: // - Binary Excel files (2.0-2003 format; *.xls) // - OpenXml Excel files (2007 format; *.xlsx) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 51dfab5..a585fed 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, // 方法是按如下所示使用“*”: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.4.0.0")] -[assembly: AssemblyFileVersion("1.4.0.0")] +[assembly: AssemblyVersion("1.4.2.0")] +[assembly: AssemblyFileVersion("1.4.2.0")]