C# Class Kentico.KInspector.Modules.ProjectCodeFilesHelper

Provides methods for listing of project code files.
Mostrar archivo Open project: Kentico/KInspector

Public Properties

Property Type Description
Current ProjectCodeFilesHelper

Public Methods

Method Description
GetCustomerProjectCodeFiles ( DirectoryInfo pathToKenticoInstance, System.Version version, bool isWebSiteProject, bool onlyCsFiles = false ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance which are not shipped with default Kentico installation. The files are relative paths within pathToKenticoInstance.

GetDefaultProjectCodeFiles ( System.Version version, bool isWebSiteProject ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) shipped with default Kentico installation. The files are relative paths within default installation.

GetProjectCodeFiles ( string pathToKenticoInstance, bool onlyCsFiles ) : IEnumerable

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance. The files are relative paths within pathToKenticoInstance.

IsWebSiteProject ( DirectoryInfo pathToKenticoInstance ) : bool

Tells you whether instance is web site or web application (based on presence of some well-known .designer.cs file).

Private Methods

Method Description
GetMetaFilePath ( System.Version version, bool isWebSiteProject ) : string

Gets path to metafile with information about default installation files.

Method Details

GetCustomerProjectCodeFiles() public method

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance which are not shipped with default Kentico installation. The files are relative paths within pathToKenticoInstance.
public GetCustomerProjectCodeFiles ( DirectoryInfo pathToKenticoInstance, System.Version version, bool isWebSiteProject, bool onlyCsFiles = false ) : IEnumerable
pathToKenticoInstance System.IO.DirectoryInfo Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
version System.Version Kentico version.
isWebSiteProject bool Whether to return default files of web site or web application project.
onlyCsFiles bool
return IEnumerable

GetDefaultProjectCodeFiles() public method

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) shipped with default Kentico installation. The files are relative paths within default installation.
Thrown when version is not supported.
public GetDefaultProjectCodeFiles ( System.Version version, bool isWebSiteProject ) : IEnumerable
version System.Version Kentico version.
isWebSiteProject bool Whether to return default files of web site or web application project.
return IEnumerable

GetProjectCodeFiles() public method

Gets enumeration of .cs, .aspx and .ascx files (.designer.cs files are excluded) residing in pathToKenticoInstance. The files are relative paths within pathToKenticoInstance.
public GetProjectCodeFiles ( string pathToKenticoInstance, bool onlyCsFiles ) : IEnumerable
pathToKenticoInstance string Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
onlyCsFiles bool Whether to select only .cs files
return IEnumerable

IsWebSiteProject() public method

Tells you whether instance is web site or web application (based on presence of some well-known .designer.cs file).
public IsWebSiteProject ( DirectoryInfo pathToKenticoInstance ) : bool
pathToKenticoInstance System.IO.DirectoryInfo Path to Kentico instance (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
return bool

Property Details

Current public_oe static_oe property

public static ProjectCodeFilesHelper,Kentico.KInspector.Modules Current
return ProjectCodeFilesHelper