Skip to content

Commit ae480e0

Browse files
committed
Merge pull request #11 from phrrngtn/master
fix for #7 - if ExcelDnaPack output file is specified without directory, use current directory.
2 parents fe395a9 + 3f8500f commit ae480e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/ExcelDnaPack/PackProgram.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ static void Main(string[] args)
119119
}
120120

121121
string outputDirectory = Path.GetDirectoryName(xllOutputPath);
122+
if (outputDirectory == String.Empty)
123+
{
124+
outputDirectory = "."; // https://github.com/Excel-DNA/ExcelDna/issues/7
125+
}
126+
122127
if (!Directory.Exists(outputDirectory))
123128
{
124129
try

0 commit comments

Comments
 (0)