Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirik Tsarpalis committed Dec 31, 2017
1 parent f601878 commit 8d11b1a
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 10 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 4.2.0
* Migrate to SourceLink 2.0

### 4.1.0
* Add AppSettings configuration reader support for NetStandard.

Expand Down
31 changes: 26 additions & 5 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ open Fake.Testing

let project = "Argu"

let summary = "A declarative command line and XML configuration parser for F# applications."

let gitOwner = "fsprojects"
let gitName = "Argu"
let gitHome = "https://github.com/" + gitOwner
Expand All @@ -43,12 +45,31 @@ Target "BuildVersion" (fun _ ->
Shell.Exec("appveyor", sprintf "UpdateBuild -Version \"%s\"" nugetVersion) |> ignore
)

// Generate assembly info files with the right version & up-to-date information
Target "AssemblyInfo" (fun _ ->
let fileName = "./src/Argu/AssemblyInfo.fs"
CreateFSharpAssemblyInfo fileName
[ Attribute.Version release.AssemblyVersion
Attribute.FileVersion release.AssemblyVersion ]
let getAssemblyInfoAttributes projectName =
[ Attribute.Title projectName
Attribute.Product project
Attribute.Description summary
Attribute.Version release.AssemblyVersion
Attribute.FileVersion release.AssemblyVersion ]

let getProjectDetails projectPath =
let projectName = System.IO.Path.GetFileNameWithoutExtension(projectPath)
( projectPath,
projectName,
System.IO.Path.GetDirectoryName(projectPath),
(getAssemblyInfoAttributes projectName)
)

!! "src/**/*.??proj"
|> Seq.map getProjectDetails
|> Seq.iter (fun (projFileName, projectName, folderName, attributes) ->
match projFileName with
| Fsproj -> CreateFSharpAssemblyInfo (folderName </> "AssemblyInfo.fs") attributes
| Csproj -> CreateCSharpAssemblyInfo ((folderName </> "Properties") </> "AssemblyInfo.cs") attributes
| Vbproj -> CreateVisualBasicAssemblyInfo ((folderName </> "My Project") </> "AssemblyInfo.vb") attributes
| Shproj -> ()
)
)


Expand Down
2 changes: 1 addition & 1 deletion src/Argu.Core/Argu.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<DocumentationFile>..\..\bin\Release\netstandard2.0\Argu.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Argu\AssemblyInfo.fs" Link="AssemblyInfo.fs" />
<Compile Include="AssemblyInfo.fs" />
<Compile Include="..\Argu\Types.fs" Link="Types.fs" />
<Compile Include="..\Argu\Attributes.fs" Link="Attributes.fs" />
<Compile Include="..\Argu\Utils.fs" Link="Utils.fs" />
Expand Down
17 changes: 17 additions & 0 deletions src/Argu.Core/AssemblyInfo.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Auto-Generated by FAKE; do not edit
namespace System
open System.Reflection

[<assembly: AssemblyTitleAttribute("Argu.Core")>]
[<assembly: AssemblyProductAttribute("Argu")>]
[<assembly: AssemblyDescriptionAttribute("A declarative command line and XML configuration parser for F# applications.")>]
[<assembly: AssemblyVersionAttribute("4.2.0")>]
[<assembly: AssemblyFileVersionAttribute("4.2.0")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] AssemblyTitle = "Argu.Core"
let [<Literal>] AssemblyProduct = "Argu"
let [<Literal>] AssemblyDescription = "A declarative command line and XML configuration parser for F# applications."
let [<Literal>] AssemblyVersion = "4.2.0"
let [<Literal>] AssemblyFileVersion = "4.2.0"
14 changes: 10 additions & 4 deletions src/Argu/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
namespace System
open System.Reflection

[<assembly: AssemblyVersionAttribute("4.1.0")>]
[<assembly: AssemblyFileVersionAttribute("4.1.0")>]
[<assembly: AssemblyTitleAttribute("Argu")>]
[<assembly: AssemblyProductAttribute("Argu")>]
[<assembly: AssemblyDescriptionAttribute("A declarative command line and XML configuration parser for F# applications.")>]
[<assembly: AssemblyVersionAttribute("4.2.0")>]
[<assembly: AssemblyFileVersionAttribute("4.2.0")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] AssemblyVersion = "4.1.0"
let [<Literal>] AssemblyFileVersion = "4.1.0"
let [<Literal>] AssemblyTitle = "Argu"
let [<Literal>] AssemblyProduct = "Argu"
let [<Literal>] AssemblyDescription = "A declarative command line and XML configuration parser for F# applications."
let [<Literal>] AssemblyVersion = "4.2.0"
let [<Literal>] AssemblyFileVersion = "4.2.0"

0 comments on commit 8d11b1a

Please sign in to comment.