FAKE - F# Make - A DSL for build tasks and more FAKE
6.0.0

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

AssemblyInfoFile Module

Contains tasks to generate AssemblyInfo files for C# and F#.

Types

Type Description

Attribute

Functions and values

Function or value Description

AssemblyInfoFile.create outputFileName attributes config

Full Usage: AssemblyInfoFile.create outputFileName attributes config

Parameters:
    outputFileName : string - The output file name
    attributes : seq<Attribute> - Sequence of attributes
    config : AssemblyInfoFileConfig option - The config file

Creates an AssemblyInfo file based in the correct language based on the file name 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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

config : AssemblyInfoFileConfig option

The config file

AssemblyInfoFile.createCSharp outputFileName attributes

Full Usage: AssemblyInfoFile.createCSharp outputFileName attributes

Parameters:
    outputFileName : string - The output file name
    attributes : seq<Attribute> - Sequence of attributes

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

AssemblyInfoFile.createCSharpWithConfig outputFileName attributes config

Full Usage: AssemblyInfoFile.createCSharpWithConfig outputFileName attributes config

Parameters:

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

config : AssemblyInfoFileConfig

The config file

AssemblyInfoFile.createCppCli outputFileName attributes

Full Usage: AssemblyInfoFile.createCppCli outputFileName attributes

Parameters:
    outputFileName : string - The output file name
    attributes : seq<Attribute> - Sequence of attributes

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

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

AssemblyInfoFile.createCppCliWithConfig outputFileName attributes config

Full Usage: AssemblyInfoFile.createCppCliWithConfig outputFileName attributes config

Parameters:

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

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

config : AssemblyInfoFileConfig

The config file

AssemblyInfoFile.createFSharp outputFileName attributes

Full Usage: AssemblyInfoFile.createFSharp outputFileName attributes

Parameters:
    outputFileName : string - The output file name
    attributes : seq<Attribute> - Sequence of attributes

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

AssemblyInfoFile.createFSharpWithConfig outputFileName attributes config

Full Usage: AssemblyInfoFile.createFSharpWithConfig outputFileName attributes config

Parameters:

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

config : AssemblyInfoFileConfig

The config file

AssemblyInfoFile.createVisualBasic outputFileName attributes

Full Usage: AssemblyInfoFile.createVisualBasic outputFileName attributes

Parameters:
    outputFileName : string - The output file name
    attributes : seq<Attribute> - Sequence of attributes

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

AssemblyInfoFile.createVisualBasicWithConfig outputFileName attributes config

Full Usage: AssemblyInfoFile.createVisualBasicWithConfig outputFileName attributes config

Parameters:

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.

outputFileName : string

The output file name

attributes : seq<Attribute>

Sequence of attributes

config : AssemblyInfoFileConfig

The config file

AssemblyInfoFile.getAttribute attrName assemblyInfoFile

Full Usage: AssemblyInfoFile.getAttribute attrName assemblyInfoFile

Parameters:
    attrName : string - Name of the attribute without "Attribute" at the end.
    assemblyInfoFile : string - The file to read from. Language C#, F#, VB or C++ is determined from the extension.

Returns: Attribute option

Read a single attribute from an AssemblyInfo file.

attrName : string

Name of the attribute without "Attribute" at the end.

assemblyInfoFile : string

The file to read from. Language C#, F#, VB or C++ is determined from the extension.

Returns: Attribute option

AssemblyInfoFile.getAttributeValue attrName assemblyInfoFile

Full Usage: AssemblyInfoFile.getAttributeValue attrName assemblyInfoFile

Parameters:
    attrName : string - Name of the attribute without "Attribute" at the end.
    assemblyInfoFile : string - The file to read from. Language C#, F#, VB or C++ is determined from the extension.

Returns: string option

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

attrName : string

Name of the attribute without "Attribute" at the end.

assemblyInfoFile : string

The file to read from. Language C#, F#, VB or C++ is determined from the extension.

Returns: string option

AssemblyInfoFile.getAttributes assemblyInfoFile

Full Usage: AssemblyInfoFile.getAttributes assemblyInfoFile

Parameters:
    assemblyInfoFile : string - The file to read attributes from. Language C#, F#, VB or C++ is determined from the extension.

Returns: seq<Attribute>

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

assemblyInfoFile : string

The file to read attributes from. Language C#, F#, VB or C++ is determined from the extension.

Returns: seq<Attribute>

AssemblyInfoFile.updateAttributes assemblyInfoFile attributes

Full Usage: AssemblyInfoFile.updateAttributes assemblyInfoFile attributes

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

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

assemblyInfoFile : string

The file to update. Language C#, F#, VB or C++ is determined from the extension.

attributes : seq<Attribute>

The Attributes that should be updated matched on Name (Namespace is not used).