-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assembly versioning/properties and handle platform exception (#1660)
* 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 NuGet/Home#4337
- Loading branch information
1 parent
1e474f8
commit 366ac26
Showing
7 changed files
with
73 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: AssemblyTitle("Octokit")] | ||
[assembly: AssemblyDescription("An async-based GitHub API client library for .NET")] | ||
[assembly: InternalsVisibleTo("Octokit.Tests")] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
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("."); | ||
context.DotNetCoreRestore(".", new DotNetCoreRestoreSettings | ||
{ | ||
ArgumentCustomization = args => args | ||
.Append("/p:Version={0}", context.Version.GetSemanticVersion()) | ||
}); | ||
} | ||
} |