diff --git a/src/app/FakeLib/AssemblyInfoHelper.fs b/src/app/FakeLib/AssemblyInfoHelper.fs index 45b9fc4e60e..a68df4b4a89 100644 --- a/src/app/FakeLib/AssemblyInfoHelper.fs +++ b/src/app/FakeLib/AssemblyInfoHelper.fs @@ -207,7 +207,8 @@ type AssemblyInfoReplacementParams = AssemblyVersion : string AssemblyFileVersion : string AssemblyInformationalVersion : string - AssemblyConfiguration : string } + AssemblyConfiguration : string + AssemblyMetadata : string} /// AssemblyInfoReplacement default params let AssemblyInfoReplacementDefaults = @@ -215,7 +216,8 @@ let AssemblyInfoReplacementDefaults = AssemblyConfiguration = null AssemblyVersion = null AssemblyFileVersion = null - AssemblyInformationalVersion = null } + AssemblyInformationalVersion = null + AssemblyMetadata = null} let ReplaceAssemblyInfoVersions param = let (parameters : AssemblyInfoReplacementParams) = param AssemblyInfoReplacementDefaults @@ -230,6 +232,7 @@ let ReplaceAssemblyInfoVersions param = |> replaceAttribute "AssemblyConfiguration" parameters.AssemblyConfiguration |> replaceAttribute "AssemblyFileVersion" parameters.AssemblyFileVersion |> replaceAttribute "AssemblyInformationalVersion" parameters.AssemblyInformationalVersion + |> replaceAttribute "AssemblyMetadata" parameters.AssemblyMetadata ReadFile parameters.OutputFileName |> Seq.map replaceLine @@ -254,4 +257,4 @@ let BulkReplaceAssemblyInfoVersions (dir:string) (replacementParameters:Assembly !!(directory.FullName @@ @"\**\AssemblyInfo.*") |> Seq.iter(fun file -> ReplaceAssemblyInfoVersions ((fun p -> {p with OutputFileName = file }) >> replacementParameters)) - else logfn "%s does not exist." directory.FullName \ No newline at end of file + else logfn "%s does not exist." directory.FullName