mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
Using the version from the ReleaseNotes.md and set it for the AssemblyVersion of the projects.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitle("Octokit.Reactive")]
|
||||
[assembly: AssemblyDescription("An IObservable based GitHub API client library for .NET using Reactive Extensions")]
|
||||
[assembly: AssemblyDescription("An IObservable based GitHub API client library for .NET using Reactive Extensions")]
|
||||
@@ -22,6 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{397C742D-2
|
||||
CONTRIBUTING.md = CONTRIBUTING.md
|
||||
LICENSE.txt = LICENSE.txt
|
||||
README.md = README.md
|
||||
ReleaseNotes.md = ReleaseNotes.md
|
||||
SolutionInfo.cs = SolutionInfo.cs
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
||||
@@ -361,7 +361,7 @@ namespace Octokit
|
||||
Environment.Is64BitOperatingSystem ? "amd64" : "x86",
|
||||
#endif
|
||||
CultureInfo.CurrentCulture.Name,
|
||||
SolutionInfo.Version);
|
||||
AssemblyVersionInformation.Version);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: AssemblyTitle("Octokit")]
|
||||
[assembly: AssemblyDescription("An async-based GitHub API client library for .NET")]
|
||||
[assembly: InternalsVisibleTo("Octokit.Tests")]
|
||||
[assembly: InternalsVisibleTo("Octokit.Tests-NetCore45")]
|
||||
+5
-21
@@ -1,25 +1,9 @@
|
||||
using System;
|
||||
// <auto-generated/>
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: AssemblyVersion(SolutionInfo.Version + ".0")]
|
||||
[assembly: AssemblyInformationalVersion(SolutionInfo.Version)]
|
||||
[assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")]
|
||||
[assembly: AssemblyProductAttribute("Octokit")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.2")]
|
||||
[assembly: AssemblyFileVersionAttribute("0.1.2")]
|
||||
|
||||
[assembly: ComVisible(false)]
|
||||
class AssemblyVersionInformation { public const string Version = "0.1.2"; }
|
||||
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("GitHub")]
|
||||
[assembly: AssemblyProduct("Octokit")]
|
||||
[assembly: AssemblyCopyright("Copyright © GitHub 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: InternalsVisibleTo("Octokit.Tests")]
|
||||
[assembly: InternalsVisibleTo("Octokit.Tests-NetCore45")]
|
||||
[assembly: CLSCompliant(false)]
|
||||
|
||||
class SolutionInfo
|
||||
{
|
||||
public const string Version = "0.1.1";
|
||||
}
|
||||
|
||||
@@ -30,6 +30,15 @@ Target "Clean" (fun _ ->
|
||||
CleanDirs [buildDir; reactiveBuildDir; testResultsDir; packagingRoot; packagingDir; reactivePackagingDir]
|
||||
)
|
||||
|
||||
open Fake.AssemblyInfoFile
|
||||
|
||||
Target "AssemblyInfo" (fun _ ->
|
||||
CreateCSharpAssemblyInfo "SolutionInfo.cs"
|
||||
[ Attribute.Product projectName
|
||||
Attribute.Version releaseNotes.AssemblyVersion
|
||||
Attribute.FileVersion releaseNotes.AssemblyVersion]
|
||||
)
|
||||
|
||||
Target "BuildApp" (fun _ ->
|
||||
MSBuildWithDefaults "Build" ["./Octokit.sln"]
|
||||
|> Log "AppBuild-Output: "
|
||||
@@ -104,6 +113,7 @@ Target "CreateOctokitReactivePackage" (fun _ ->
|
||||
Target "Default" DoNothing
|
||||
|
||||
"Clean"
|
||||
==> "AssemblyInfo"
|
||||
==> "BuildApp"
|
||||
==> "UnitTests"
|
||||
==> "IntegrationTests"
|
||||
|
||||
Reference in New Issue
Block a user