Build Managed Batch Parser NuGet package (#1747)

This commit is contained in:
Cheena Malhotra
2022-11-07 10:03:32 -08:00
committed by GitHub
parent 2856ff241f
commit d33c97c079
13 changed files with 259 additions and 68 deletions

View File

@@ -232,5 +232,19 @@ public void DotnetPack(string outputFolder, string projectFolder, string project
})
.ExceptionOnError($"Packaging {project} failed. See {logPath} for details.");
}
}
public void DotnetPackNuspec(string outputFolder, string projectFolder, string project) {
var logPath = System.IO.Path.Combine(logFolder, $"{project}-pack.log");
using (var logWriter = new StreamWriter(logPath)) {
Information($"Packaging {projectFolder}");
Run(nugetcli, $"pack {projectFolder}\\{project}.nuspec -OutputDirectory {outputFolder}",
new RunOptions
{
StandardOutputWriter = logWriter,
StandardErrorWriter = logWriter
})
.ExceptionOnError($"Packaging {project} failed. See {logPath} for details.");
}
}