Skip to content

Commit

Permalink
Merge pull request #991 from abunk/master
Browse files Browse the repository at this point in the history
Add code to replace new assemblyinfo attributes
  • Loading branch information
forki committed Oct 30, 2015
2 parents 4537d3b + 46b5638 commit 75fb28d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/FakeLib/AssemblyInfoHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ type AssemblyInfoReplacementParams =
AssemblyVersion : string
AssemblyFileVersion : string
AssemblyInformationalVersion : string
AssemblyCompany : string
AssemblyCopyright : string
AssemblyConfiguration : string
AssemblyMetadata : (string * string) list }

Expand All @@ -215,7 +217,9 @@ let AssemblyInfoReplacementDefaults =
AssemblyConfiguration = null
AssemblyVersion = null
AssemblyFileVersion = null
AssemblyInformationalVersion = null
AssemblyInformationalVersion = null
AssemblyCompany = null
AssemblyCopyright = null
AssemblyMetadata = [] }

let ReplaceAssemblyInfoVersions param =
Expand Down Expand Up @@ -246,6 +250,8 @@ let ReplaceAssemblyInfoVersions param =
|> replaceAttribute "AssemblyConfiguration" parameters.AssemblyConfiguration
|> replaceAttribute "AssemblyFileVersion" parameters.AssemblyFileVersion
|> replaceAttribute "AssemblyInformationalVersion" parameters.AssemblyInformationalVersion
|> replaceAttribute "AssemblyCompany" parameters.AssemblyCompany
|> replaceAttribute "AssemblyCopyright" parameters.AssemblyCopyright
|> replaceMetadataAttributes parameters.AssemblyMetadata

ReadFile parameters.OutputFileName
Expand Down

0 comments on commit 75fb28d

Please sign in to comment.