Summary
Parses project information from project file.
Syntax
[CakeMethodAlias]
public static ProjectParserResult ParseProject(this ICakeContext context, FilePath projectPath)
Examples
var parsedProject = ParseProject("./src/Cake/Cake.csproj");
Information(
@" Parsed project file:
Configuration : {0}
Platform : {1}
OutputType : {2}
OutputPath : {3}
RootNameSpace : {4}
AssemblyName : {5}
TargetFrameworkVersion: {6}
Files : {7}",
parsedProject.Configuration,
parsedProject.Platform,
parsedProject.OutputType,
parsedProject.OutputPath,
parsedProject.RootNameSpace,
parsedProject.AssemblyName,
parsedProject.TargetFrameworkVersion,
string.Concat(
parsedProject
.Files
.Select(
file=> string.Format(
"\r\n {0}",
file.FilePath
)
)
)
);
Attributes
Parameters
Return Value