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
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
assemblyInfoPath |
FilePath |
The assembly info path. |
Return Value