ProjectParserExtensions.

ParseProjectFile(IFile, string, string) Method

Summary

Parses a csproj file into a strongly typed CustomProjectParserResult object

Syntax

public static CustomProjectParserResult ParseProjectFile(this IFile projectFile, string configuration, string platform = "AnyCPU")

Examples

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

Parameters

Name Type Description
projectFile IFile the project file
configuration string the build configuration
platform string the build configuration platform, defaults to AnyCPU if not specified

Return Value

Type Description
CustomProjectParserResult The parsed project