Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead

AssemblyInfoHelper

Generates an AssemblyInfo file

Nested types and modules

TypeDescription
AssemblyInfoParams
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead

AssemblyInfoReplacementParams
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents

CodeLanguage
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead

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
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead

AssemblyInfo default params

AssemblyInfoReplacementDefaults
Signature: AssemblyInfoReplacementParams
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents

AssemblyInfoReplacement default params

BulkReplaceAssemblyInfoVersions(...)
Signature: dir:string -> replacementParameters:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents

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
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead

generates the assembly info file

ReplaceAssemblyInfoVersions(param)
Signature: param:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents

ReplaceAssemblyInfoVersionsBulk(...)
Signature: fileIncludes:FileIncludes -> replacementParameters:(AssemblyInfoReplacementParams -> AssemblyInfoReplacementParams) -> unit
Attributes:
[<Obsolete("Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents")>]
OBSOLETE

Use Fake.DotNet.AssemblyInfoFile instead, generating files is safer than replacing contents

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