From 46b56382956f488041e507ddc1fed5b6ac219aa6 Mon Sep 17 00:00:00 2001 From: abunk Date: Fri, 30 Oct 2015 08:11:46 +0100 Subject: [PATCH] Add code to replace new assemblyinfo attributes --- src/app/FakeLib/AssemblyInfoHelper.fs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/FakeLib/AssemblyInfoHelper.fs b/src/app/FakeLib/AssemblyInfoHelper.fs index fbc51dd780c..b63a1484d4b 100644 --- a/src/app/FakeLib/AssemblyInfoHelper.fs +++ b/src/app/FakeLib/AssemblyInfoHelper.fs @@ -206,6 +206,8 @@ type AssemblyInfoReplacementParams = AssemblyVersion : string AssemblyFileVersion : string AssemblyInformationalVersion : string + AssemblyCompany : string + AssemblyCopyright : string AssemblyConfiguration : string AssemblyMetadata : (string * string) list } @@ -215,7 +217,9 @@ let AssemblyInfoReplacementDefaults = AssemblyConfiguration = null AssemblyVersion = null AssemblyFileVersion = null - AssemblyInformationalVersion = null + AssemblyInformationalVersion = null + AssemblyCompany = null + AssemblyCopyright = null AssemblyMetadata = [] } let ReplaceAssemblyInfoVersions param = @@ -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