FilePathExtensions.

IsProject(FilePath) Method

Summary

Checks if the FilePath is a vbproj/csproj/fsproj file

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