ProjectParserExtensions.

ParseProject(ICakeContext, FilePath, string) Method

Summary

Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and default platform (AnyCpu)

Syntax

public static CustomProjectParserResult ParseProject(this ICakeContext context, FilePath project, string configuration)

Examples

Returns the project information specific to a build configuration
CustomParseProjectResult project = ParseProject(new FilePath("test.csproj"), configuration: "Release");

Remarks

Defaults to 'AnyCPU' platform, use overload to override this default

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext the cake context
project FilePath the project filepath
configuration string the build configuration

Return Value

Type Description
CustomProjectParserResult The parsed project