Using the version from the ReleaseNotes.md and set it for the AssemblyVersion of the projects.

This commit is contained in:
Steffen Forkmann
2013-10-31 20:49:15 +01:00
parent 208a06ede6
commit 32430c47e3
6 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -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")]
+1
View File
@@ -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
+1 -1
View File
@@ -361,7 +361,7 @@ namespace Octokit
Environment.Is64BitOperatingSystem ? "amd64" : "x86",
#endif
CultureInfo.CurrentCulture.Name,
SolutionInfo.Version);
AssemblyVersionInformation.Version);
}
}
}
+3
View File
@@ -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
View File
@@ -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";
}
+10
View File
@@ -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"