public static void DotNetCoreRun(this ICakeContext context, string project, ProcessArgumentBuilder arguments, DotNetCoreRunSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (settings == null) { settings = new DotNetCoreRunSettings(); } var runner = new DotNetCoreRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run(project, arguments, settings); }
static void RunIt(BuildContext context, string?args) { context.DotNetCoreRestore(Project); var settings = new DotNetCoreRunSettings { //Framework = "net5.0", //ArgumentCustomization = args => args.Append("--l Debug"), Configuration = context.MsBuildConfiguration, EnvironmentVariables = new Dictionary <string, string> { { "GITHUB_TOKEN", context.DocsDeployGitHubToken } } }; context.DotNetCoreRun(Project, args, settings); }
static void RunIt(BuildContext context, bool deploy) { context.DotNetCoreRestore(Project); var settings = new DotNetCoreRunSettings { Configuration = context.MsBuildConfiguration, EnvironmentVariables = new Dictionary <string, string> { { "GITHUB_TOKEN", context.DocsDeployGitHubToken } } }; var args = new ProcessArgumentBuilder(); if (deploy) { args.Append("deploy"); } context.DotNetCoreRun(Project, args, settings); }