From 899ff17ee4874873a3c94395e4b9f323bf88b6f1 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 31 Jul 2022 19:49:46 -0400 Subject: [PATCH] fixed excel file being created one parent dir up --- DAL/ExcelDataService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DAL/ExcelDataService.cs b/DAL/ExcelDataService.cs index 18513b4..dcbb93e 100644 --- a/DAL/ExcelDataService.cs +++ b/DAL/ExcelDataService.cs @@ -19,7 +19,8 @@ public class ExcelDataService : IDataService { _dateTime = DateTime.Now.ToString("yyyyMMdd"); _fileName = $"CommitReport-{_dateTime}.xlsx"; - _pathName = Directory.GetCurrentDirectory() + _fileName; + _pathName = Directory.GetCurrentDirectory() + "/" + _fileName; + System.Console.WriteLine(_pathName); _xlsxFile = SpreadsheetDocument.Create(_pathName, SpreadsheetDocumentType.Workbook); _xlsxWorkbookPart = _xlsxFile.AddWorkbookPart(); _xlsxWorkbookPart.Workbook = new Workbook();