diff --git a/generator/CSharpReference.cs b/generator/CSharpReference.cs index 018b5e0..d764a7e 100644 --- a/generator/CSharpReference.cs +++ b/generator/CSharpReference.cs @@ -3,6 +3,7 @@ using System.Runtime.InteropServices; using System.Text; using NuGet.Common; +using NuGet.Packaging; namespace DocGenerator; @@ -234,6 +235,8 @@ public static async Task UpdateVpkCliReference(string outputCliReference) Console.WriteLine("Generating MacOS VPK"); var vpkOsx = await GetVpkHelpForDirective("[osx]", vpkDll); + Console.WriteLine(vpkOsx); + var vpkStringBuilder = new StringBuilder(); var vpkTocSb = new StringBuilder(); AppendVpkCommand(vpkStringBuilder, vpkTocSb, vpkOsx, "vpk", 0); @@ -258,7 +261,6 @@ static void AppendVpkCommand(StringBuilder helpsb, StringBuilder tocsb, VpkComma helpsb.AppendLine(command.HelpText); helpsb.AppendLine($"```"); - // sb.AppendLine($"{new string(' ', depth * 2)}## {command.Name}"); // sb.AppendLine($"{new string(' ', depth * 2)}{command.HelpText}"); // sb.AppendLine(); @@ -323,11 +325,14 @@ static async Task RunCaptureStdOut(string exePath, string[] args) { var psi = new ProcessStartInfo { FileName = exePath, - Arguments = string.Join(" ", args), + //Arguments = string.Join(" ", args), RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false, }; + psi.ArgumentList.AddRange(args); + + Console.WriteLine($"Running: {exePath} {string.Join(" ", args)}"); return await RunCaptureStdOut(psi); }