Skip to content

Commit 5145d12

Browse files
Fix documentation build tasks
1 parent 195cfd6 commit 5145d12

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build/Program.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.IO;
22
using System.Linq;
33
using System.Text;
4-
using System.Xml;
5-
using System.Xml.Xsl;
64
using Cake.Common;
75
using Cake.Common.Build;
86
using Cake.Common.Build.AppVeyor;
@@ -179,11 +177,12 @@ public void DocfxChangelogGenerate(string version)
179177

180178
public void RunDocfx(FilePath docfxJson, string args = "")
181179
{
180+
this.Information($"Running docfx for '{docfxJson}' with args '{args}'");
182181
if (!this.IsRunningOnWindows())
183182
this.StartProcess("mono",
184183
new ProcessSettings { Arguments = DocfxExeFile.FullPath + " " + docfxJson + " " + args });
185184
else
186-
this.StartProcess(DocfxExeFile.FullPath, new ProcessSettings { Arguments = args });
185+
this.StartProcess(DocfxExeFile.FullPath, new ProcessSettings { Arguments = docfxJson + " " + args });
187186
}
188187
}
189188

@@ -429,7 +428,7 @@ public override void Run(BuildContext context)
429428
}
430429
}
431430

432-
[TaskName("DocFX_Changelog_Build")]
431+
[TaskName("DocFX_Build")]
433432
[IsDependentOn(typeof(DocfxInstallTask))]
434433
[IsDependentOn(typeof(DocfxChangelogGenerateTask))]
435434
public class DocfxChangelogBuildTask : FrostingTask<BuildContext>
@@ -440,7 +439,7 @@ public override void Run(BuildContext context)
440439
}
441440
}
442441

443-
[TaskName("DocFX_Changelog_Serve")]
442+
[TaskName("DocFX_Serve")]
444443
[IsDependentOn(typeof(DocfxInstallTask))]
445444
[IsDependentOn(typeof(DocfxChangelogGenerateTask))]
446445
public class DocfxChangelogServeTask : FrostingTask<BuildContext>

0 commit comments

Comments
 (0)