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

FAKE0001 Use Fake.DotNet.AssemblyInfoFile instead

AssemblyInfoFile

Contains tasks to generate AssemblyInfo files for C# and F#. There is also a tutorial about the AssemblyInfo tasks available.

Nested types and modules

TypeDescription
AssemblyInfoFileConfig
OBSOLETE

FAKE0001 Use Fake.DotNet.AssemblyInfoFileConfig instead

Represents options for configuring the emission of AssemblyInfo

Attribute
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfo.___' instead

Represents AssemblyInfo attributes

Functions and values

Function or valueDescription
CreateCppCliAssemblyInfo(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCppCli' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCppCli' instead

Creates a C++/CLI AssemblyInfo file with the given attributes.

CreateCppCliAssemblyInfoWithConfig(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> config:AssemblyInfoFileConfig -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCppCliWithConfig' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCppCliWithConfig' instead

Creates a C++/CLI AssemblyInfo file with the given attributes and configuration. Does not generate an AssemblyVersionInformation class.

CreateCSharpAssemblyInfo(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCSharp' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCSharp' instead

Creates a C# AssemblyInfo file with the given attributes. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

CreateCSharpAssemblyInfoWithConfig(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> config:AssemblyInfoFileConfig -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCSharpWithConfig' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createCSharpWithConfig' instead

Creates a C# AssemblyInfo file with the given attributes and configuration. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

CreateFSharpAssemblyInfo(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createFSharp' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createFSharp' instead

Creates a F# AssemblyInfo file with the given attributes. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

CreateFSharpAssemblyInfoWithConfig(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> config:AssemblyInfoFileConfig -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createFSharpWithConfig' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createFSharpWithConfig' instead

Creates a F# AssemblyInfo file with the given attributes and configuration. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

CreateVisualBasicAssemblyInfo(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createVisualBasic' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createVisualBasic' instead

Creates a VB AssemblyInfo file with the given attributes. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

CreateVisualBasicAssemblyInfoWithConfig(...)
Signature: outputFileName:string -> attributes:seq<Attribute> -> config:AssemblyInfoFileConfig -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createVisualBasicWithConfig' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.createVisualBasicWithConfig' instead

Creates a VB AssemblyInfo file with the given attributes and configuration. The generated AssemblyInfo file contains an AssemblyVersionInformation class which can be used to retrieve the current version no. from inside of an assembly.

GetAttribute attrName assemblyInfoFile
Signature: attrName:string -> assemblyInfoFile:string -> Attribute option
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttribute' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttribute' instead

Read a single attribute from an AssemblyInfo file.

Parameters

  • attrName - Name of the attribute without "Attribute" at the end.
  • assemblyInfoFile - The file to read from. Language C#, F#, VB or C++ is determined from the extension.
GetAttributes(assemblyInfoFile)
Signature: assemblyInfoFile:string -> seq<Attribute>
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttributes' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttributes' instead

Read attributes from an AssemblyInfo file and return as a sequence of Attribute.

Parameters

  • assemblyInfoFile - The file to read attributes from. Language C#, F#, VB or C++ is determined from the extension.
GetAttributeValue(...)
Signature: attrName:string -> assemblyInfoFile:string -> string option
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttributeValue' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.getAttributeValue' instead

Read the value of a single attribute from an AssemblyInfo file. Note that string values are returned with surrounding "".

Parameters

  • attrName - Name of the attribute without "Attribute" at the end.
  • assemblyInfoFile - The file to read from. Language C#, F#, VB or C++ is determined from the extension.
UpdateAttributes(...)
Signature: assemblyInfoFile:string -> attributes:seq<Attribute> -> unit
Attributes:
[<Obsolete("FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.updateAttributes' instead")>]
OBSOLETE

FAKE0001 Use 'open Fake.DotNet' and 'AssemblyInfoFile.updateAttributes' instead

Update a set of attributes in an AssemblyInfo file. Fails if any attribute is not found.

Parameters

  • assemblyInfoFile - The file to update. Language C#, F#, VB or C++ is determined from the extension.
  • attributes - The Attributes that should be updated matched on Name (Namespace is not used).

Active patterns

Active patternDescription
( |Fsproj|Csproj|Vbproj|Shproj| )(...)
Signature: projFileName:string -> Choice<unit,unit,unit,unit>
Attributes:
[<Obsolete("FAKE0001 Use Fake.DotNet.AssemblyInfoFile instead")>]
OBSOLETE

FAKE0001 Use Fake.DotNet.AssemblyInfoFile instead