AssemblyInfoAliases.

CreateAssemblyInfo(ICakeContext, FilePath, AssemblyInfoSettings) Method

Summary

Creates an assembly information file.

Syntax

[CakeMethodAlias]
public static void CreateAssemblyInfo(this ICakeContext context, FilePath outputPath, AssemblyInfoSettings settings)

Examples

var file = "./SolutionInfo.cs";
var version = "0.0.1";
var buildNo = "123";
var semVersion = string.Concat(version + "-" + buildNo);
CreateAssemblyInfo(file, new AssemblyInfoSettings {
    Product = "SampleProject",
    Version = version,
    FileVersion = version,
    InformationalVersion = semVersion,
    Copyright = string.Format("Copyright (c) Contoso 2014 - {0}", DateTime.Now.Year)
});

Attributes

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

Parameters

Name Type Description
context ICakeContext The context.
outputPath FilePath The output path.
settings AssemblyInfoSettings The settings.

Return Value

Type Description
void