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 if the FilePath is a vbproj/csproj/fsproj file
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .FilePathExtensions - Containing Type
- FilePathExtensions
Syntax
public static bool IsProject(this FilePath filePath)
Examples
Check if the file is a project
new FilePath("test.csproj").IsProject(); // true;
new FilePath("test.fsproj").IsProject(); // true;
new FilePath("test.vbproj").IsProject(); // true;
Parameters
Name | Type | Description |
---|---|---|
filePath | FilePath | the path to check |
Return Value
Type | Description |
---|---|
bool | true if a visual studio project file was recognised |