Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to replace new assemblyinfo attributes #991

Merged
merged 1 commit into from
Oct 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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