ProjectParserExtensions.

ParseProject(ICakeContext, FilePath, string, string) Method

Summary

Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and target platform

Syntax

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

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
CustomProjectParserResult The parsed project