public override void Run(Context context) { // Copy packages to build/artifacts/packages var packages = GlobbingAliases.GetFiles(context, "./source/**/*.symbols.nupkg"); foreach (var package in packages) { context.CopyFileToDirectory(package, context.PackagesDir); } // Publish packages if (context.ShouldPublish) { foreach (var package in packages) { DotNetCoreAliases.DotNetCoreNuGetPush( context, package.FullPath, new DotNetCoreNuGetPushSettings() { ArgumentCustomization = args => args.Append("/nodeReuse:False"), Source = "https://www.example.com/nugetfeed", ApiKey = "4003d786-cc37-4004-bfdf-c4f3e8ef9b3a", }); } } else { context.Information("Publishing skipped"); } }
public override void Run(Context context) { var packSettings = new DotNetCorePackSettings() { ArgumentCustomization = args => args.Append("/nodeReuse:False").Append("/m"), Configuration = context.Configuration, IncludeSymbols = true, NoBuild = true, }; if (context.MsBuildDebug) { packSettings.ArgumentCustomization = args => args.Append($"/bl:{context.MsBuildPackLogFile}"); } DotNetCoreAliases.DotNetCorePack( context, context.SolutionFile.FullPath, packSettings); }
public override void Run(Context context) { var buildSettings = new DotNetCoreBuildSettings { ArgumentCustomization = args => args.Append("/nodeReuse:False").Append("/m"), Configuration = context.Configuration, NoRestore = true }; if (context.MsBuildDebug) { buildSettings.ArgumentCustomization = args => args.Append($"/bl:{context.MsBuildBuildLogFile}"); } // Build solution DotNetCoreAliases.DotNetCoreBuild( context, context.SolutionFile.FullPath, buildSettings); }