C# Class CCNet.Build.Common.Util

Some utility methods which are hard to be categorized yet.
Show file Open project: shuruev/CCNet.Extensions

Public Methods

Method Description
LocalNameToProjectNames ( string localName ) : List

Gets potenial project names which may correspond to the specified local name. E.g. for the local name "MyProject" it could be just "MyProject" or "CnetContent.MyProject".

Normalize ( this version ) : Version

Converts version to a form where all four components are specified.

ProjectNameToLocalName ( string projectName ) : string

Gets local name used for project files and folders. It is a project name where we omit some prefixes, like "CnetConent." for example.

ReplaceIgnoreCase ( this input, string search, string replacement ) : string

Performs case-insensitive string replacement.

Method Details

LocalNameToProjectNames() public static method

Gets potenial project names which may correspond to the specified local name. E.g. for the local name "MyProject" it could be just "MyProject" or "CnetContent.MyProject".
public static LocalNameToProjectNames ( string localName ) : List
localName string
return List

Normalize() public static method

Converts version to a form where all four components are specified.
public static Normalize ( this version ) : Version
version this
return Version

ProjectNameToLocalName() public static method

Gets local name used for project files and folders. It is a project name where we omit some prefixes, like "CnetConent." for example.
public static ProjectNameToLocalName ( string projectName ) : string
projectName string
return string

ReplaceIgnoreCase() public static method

Performs case-insensitive string replacement.
public static ReplaceIgnoreCase ( this input, string search, string replacement ) : string
input this
search string
replacement string
return string