Skip to content

Commit 708ae46

Browse files
Update VersionName enricher to display Excel 2016 or 2019 or 365 for Excel v16
Microsoft did not bump the "16" version number for Excel 2019 and Excel 365
1 parent 1a751ed commit 708ae46

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Serilog.Enrichers.ExcelDna/Enrichers/ExcelDna/ExcelVersionNameEnricher.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ private static string GetExcelVersionName(bool includeExcelBitness)
5858

5959
switch (versionNumber)
6060
{
61-
case 17: // Office 2019 - 17.0
62-
versionName = "Excel 2019";
63-
break;
64-
65-
case 16: // Office 2016 - 16.0
66-
versionName = "Excel 2016";
61+
case 16: // Office 2016 ^ 2019 ^ 365 - 16.0
62+
versionName = "Excel 2016 or 2019 or 365";
6763
break;
6864

6965
case 15: // Office 2013 - 15.0

0 commit comments

Comments
 (0)