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
Checks the parsed projects type
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Containing Type
- Project
Parser Extensions
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 | Custom |
the parsed project |
projectType | ProjectType | the ProjectType to check |
Return Value
Type | Description |
---|---|
bool | true if the project type matches |