Skip to content

Commit

Permalink
Added metadata property for AssemblyInfoReplacementParams - references
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 8, 2015
1 parent 37104ee commit 65338a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 3.18.1 - 08.03.2015
* Added metadata property for AssemblyInfoReplacementParams - https://github.com/fsharp/FAKE/pull/675

#### 3.18.0 - 04.03.2015
* Remvoved internal class generated in AssemblyInfo.Vb - https://github.com/fsharp/FAKE/pull/673
* Adding ability to control type library export (/tlb flag) of RegAsm - https://github.com/fsharp/FAKE/pull/668
Expand Down
6 changes: 3 additions & 3 deletions src/app/FakeLib/AssemblyInfoHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ type AssemblyInfoReplacementParams =
AssemblyFileVersion : string
AssemblyInformationalVersion : string
AssemblyConfiguration : string
AssemblyMetadata : string}
AssemblyMetadata : string list }

/// AssemblyInfoReplacement default params
let AssemblyInfoReplacementDefaults =
Expand All @@ -217,7 +217,7 @@ let AssemblyInfoReplacementDefaults =
AssemblyVersion = null
AssemblyFileVersion = null
AssemblyInformationalVersion = null
AssemblyMetadata = null}
AssemblyMetadata = [] }

let ReplaceAssemblyInfoVersions param =
let (parameters : AssemblyInfoReplacementParams) = param AssemblyInfoReplacementDefaults
Expand All @@ -232,7 +232,7 @@ let ReplaceAssemblyInfoVersions param =
|> replaceAttribute "AssemblyConfiguration" parameters.AssemblyConfiguration
|> replaceAttribute "AssemblyFileVersion" parameters.AssemblyFileVersion
|> replaceAttribute "AssemblyInformationalVersion" parameters.AssemblyInformationalVersion
|> replaceAttribute "AssemblyMetadata" parameters.AssemblyMetadata
|> replaceAttribute "AssemblyMetadata" (String.Join(", ", parameters.AssemblyMetadata))

ReadFile parameters.OutputFileName
|> Seq.map replaceLine
Expand Down

0 comments on commit 65338a7

Please sign in to comment.