mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
366ac261bf
* Use assembly version instead of hard-coded ones Builds happening on AppVeyor specify the assembly version with `dotnet build /p:Version=<gitversion>` * Set default version for dev time This is to avoid that the default 1.0.0 version be assigned to the assemblies * Move various package/assembly properties from AssemblyInfo into csproj files so dotnet build can set them all * Get rid of SolutionInfo and move assembly version function into Connection class * Rework FormatUserAgent to use InformationalVersion and guard against exceptions determining platform OS/arch (fixes #1617) * Update assembly descriptions * Reword dotnetcore to .NET Core * Attempted workaround for package version dependency issue by specifying version on dotnet restore see https://github.com/NuGet/Home/issues/4337
17 lines
480 B
C#
17 lines
480 B
C#
using Cake.Common.Tools.DotNetCore;
|
|
using Cake.Common.Tools.DotNetCore.Restore;
|
|
using Cake.Core;
|
|
using Cake.Frosting;
|
|
|
|
[Dependency(typeof(Clean))]
|
|
public sealed class Restore : FrostingTask<Context>
|
|
{
|
|
public override void Run(Context context)
|
|
{
|
|
context.DotNetCoreRestore(".", new DotNetCoreRestoreSettings
|
|
{
|
|
ArgumentCustomization = args => args
|
|
.Append("/p:Version={0}", context.Version.GetSemanticVersion())
|
|
});
|
|
}
|
|
} |