Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

AssemblyInfoHelper

Generates an AssemblyInfo file

Nested types and modules

TypeDescription
AssemblyInfoParams
AssemblyInfoReplacementParams
CodeLanguage

Functions and values

Function or valueDescription
AssemblyInfo(setParams)
Signature: setParams:(AssemblyInfoParams -> AssemblyInfoParams) -> unit
Attributes:
[<Obsolete("Please use the new AssemblyInfoFile tasks")>]
OBSOLETE

Please use the new AssemblyInfoFile tasks

Generates an AssemblyInfo file for projects Obsolete - Please use the new AssemblyInfoFile tasks

AssemblyInfoDefaults
Signature: AssemblyInfoParams

AssemblyInfo default params

AssemblyInfoReplacementDefaults
Signature: AssemblyInfoReplacementParams

AssemblyInfoReplacement default params

BulkReplaceAssemblyInfoVersions(...)
Signature: dir:string -> replacementParameters:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit

Update all AssemblyInfo.[fs|cs|vb] files in the specified directory and its subdirectories

Parameters

  • 'dir' - The directory (subdirectories will be included), which inhabits the AssemblyInfo files.
  • 'replacementParameters' - The replacement parameters for the AssemblyInfo files.

Sample

1: 
2: 
3: 
4: 
   BulkReplaceAssemblyInfoVersions "test/" (fun f -> 
                                              {f with
                                                  AssemblyVersion = "1.1.1.1"
                                                  AssemblyInformationalVersion = "1.1.1.1"})
generateFile(...)
Signature: param:AssemblyInfoParams -> attributes:Dictionary<string,string> -> imports:seq<string> -> writer:TextWriter -> unit

generates the assembly info file

ReplaceAssemblyInfoVersions(param)
Signature: param:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit
ReplaceAssemblyInfoVersionsBulk(...)
Signature: fileIncludes:FileIncludes -> replacementParameters:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit

Update all AssemblyInfos that were passed with given FileInclude

Parameters

  • 'dir' - The directory (subdirectories will be included), which inhabits the AssemblyInfo files.
  • 'replacementParameters' - The replacement parameters for the AssemblyInfo files.

Sample

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
let assemblyInfos = !!(@".\src\**\AssemblyInfo.cs") 
                       --(@"**\*Scripts*\**")

ReplaceAssemblyInfoVersionsBulk assemblyInfos (fun f -> 
    { f with
            AssemblyVersion = asmVersion
            AssemblyInformationalVersion = asmInfoVersion
    })                          
val assemblyInfos : obj