ProjectParserExtensions.

GetProjectProperty(CustomProjectParserResult, string) Method

Summary

Gets any project property by name. Useful for getting non-standard properties in the CustomProjectParserResult type

Syntax

public static string GetProjectProperty(this CustomProjectParserResult projectParserResult, string propertyName)

Examples

Gets a project property by name, will return any config/platform specific values if they exist
CustomParseProjectResult project 
        = ParseProject(new FilePath("test.csproj"), configuration: "Release", platform: "x86");
string propValue = project.GetProjectProperty("DocumentationFile");

Parameters

Name Type Description
projectParserResult CustomProjectParserResult the parsed project
propertyName string the project propertyName

Return Value

Type Description
string the project property value if found