This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Gets any project property by name. Useful for getting non-standard properties in the CustomProjectParserResult type
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Containing Type
- Project
Parser Extensions
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 | Custom |
the parsed project |
propertyName | string | the project propertyName |
Return Value
Type | Description |
---|---|
string | the project property value if found |