Skip to content

Commit

Permalink
open .xlsx file using share mode
Browse files Browse the repository at this point in the history
  • Loading branch information
neil3d committed Oct 8, 2020
1 parent 7cccfe8 commit 0092834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ExcelLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit 0092834

Please sign in to comment.