We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ce04f commit 049c438Copy full SHA for 049c438
projects/client/Apigen/src/apigen/Apigen.cs
@@ -358,6 +358,13 @@ public void GenerateOutput()
358
{
359
Console.WriteLine("* Generating code into '" + m_outputFilename + "'");
360
361
+ var directory = Path.GetDirectoryName(m_outputFilename);
362
+
363
+ if (!Directory.Exists(directory))
364
+ {
365
+ Directory.CreateDirectory(directory);
366
+ }
367
368
using (var stream = new FileStream(m_outputFilename, FileMode.Create, FileAccess.Write))
369
370
m_outputFile = new StreamWriter(stream);
0 commit comments