C# Class Kentico.KInspector.Modules.ProjectCodeFilesHelper

Provides methods for listing of project code files.
Afficher le fichier Open project: Kentico/KInspector

Méthodes publiques

Свойство Type Description
Current ProjectCodeFilesHelper

Méthodes publiques

Méthode 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

Méthode Description
GetMetaFilePath ( System.Version version, bool isWebSiteProject ) : string

Gets path to metafile with information about default installation files.

Method Details

GetCustomerProjectCodeFiles() public méthode

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
Résultat IEnumerable

GetDefaultProjectCodeFiles() public méthode

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.
Résultat IEnumerable

GetProjectCodeFiles() public méthode

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
Résultat IEnumerable

IsWebSiteProject() public méthode

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).
Résultat bool

Property Details

Current public_oe static_oe property

public static ProjectCodeFilesHelper,Kentico.KInspector.Modules Current
Résultat ProjectCodeFilesHelper