mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
* Update README and shipping-releases as they are a bit out of date * Update year/copyright info * Update cake.frosting to latest for newest dotnet tooling support, and adjust builds for new configuration parameters * update xunit packages so codelens works for nested test classes (VS2017 15.3 update is also required) * Fixup VS version and remove win debugging tools
29 lines
976 B
C#
29 lines
976 B
C#
using Cake.Common.Diagnostics;
|
|
using Cake.Common.Tools.DotNetCore;
|
|
using Cake.Common.Tools.DotNetCore.Pack;
|
|
using Cake.Core;
|
|
using Cake.Frosting;
|
|
|
|
[Dependency(typeof(UnitTests))]
|
|
[Dependency(typeof(ConventionTests))]
|
|
[Dependency(typeof(ValidateLINQPadSamples))]
|
|
public sealed class Package : FrostingTask<Context>
|
|
{
|
|
public override void Run(Context context)
|
|
{
|
|
foreach (var project in context.Projects)
|
|
{
|
|
if (project.Publish)
|
|
{
|
|
context.Information("Packing {0}...", project.Name);
|
|
context.DotNetCorePack(project.Path.FullPath, new DotNetCorePackSettings()
|
|
{
|
|
Configuration = context.Configuration,
|
|
NoBuild = true,
|
|
OutputDirectory = context.Artifacts,
|
|
ArgumentCustomization = args => args.Append("/p:Version={0}", context.Version.GetSemanticVersion())
|
|
});
|
|
}
|
|
}
|
|
}
|
|
} |