AssemblyInfoAliases.

ParseAssemblyInfo(ICakeContext, FilePath) Method

Summary

Parses an existing assembly information file.

Syntax

[CakeMethodAlias]
public static AssemblyInfoParseResult ParseAssemblyInfo(this ICakeContext context, FilePath assemblyInfoPath)

Examples

var assemblyInfo = ParseAssemblyInfo("./SolutionInfo.cs");
Information("Version: {0}", assemblyInfo.AssemblyVersion);
Information("File version: {0}", assemblyInfo.AssemblyFileVersion);
Information("Informational version: {0}", assemblyInfo.AssemblyInformationalVersion);

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
assemblyInfoPath FilePath The assembly info path.

Return Value

Type Description
AssemblyInfoParseResult The content of the assembly info file.