ProjectParserExtensions.

IsType(CustomProjectParserResult, ProjectType) Method

Summary

Checks the parsed projects type

Syntax

public static bool IsType(this CustomProjectParserResult projectParserResult, ProjectType projectType)

Examples

Checks the project type
CustomParseProjectResult project = ParseProject(new FilePath("test.csproj"), "Release");
project.IsType(ProjectType.CSharp); // true

Remarks

Project Types are not supported in NetCore, this extension is for the Net Framework only

Parameters

Name Type Description
projectParserResult CustomProjectParserResult the parsed project
projectType ProjectType the ProjectType to check

Return Value

Type Description
bool true if the project type matches