C# Class C24.ReVersion.SolutionParser

ファイルを表示 Open project: CHECK24/c24.ReVersion Class Usage Examples

Public Properties

Property Type Description
projectPathsRegex System.Text.RegularExpressions.Regex

Public Methods

Method Description
GetProjectPaths ( string solutionFileName ) : IEnumerable
SolutionParser ( IFileSystem fileSystem ) : System

Method Details

GetProjectPaths() public method

public GetProjectPaths ( string solutionFileName ) : IEnumerable
solutionFileName string
return IEnumerable

SolutionParser() public method

public SolutionParser ( IFileSystem fileSystem ) : System
fileSystem IFileSystem
return System

Property Details

projectPathsRegex public_oe static_oe property

Regular expression for extraction of project paths belonging to a solution.
A description of the regular expression: A numbered capture group. [Project\("\{[A-F0-9]{8}(-[A-F0-9]{4}){3}-[A-F0-9]{12}\}"\)] Project\("\{[A-F0-9]{8}(-[A-F0-9]{4}){3}-[A-F0-9]{12}\}"\) Project Literal ( " Literal { Any character in this class: [A-F0-9], exactly 8 repetitions [2]: A numbered capture group. [-[A-F0-9]{4}], exactly 3 repetitions -[A-F0-9]{4} - Any character in this class: [A-F0-9], exactly 4 repetitions - Any character in this class: [A-F0-9], exactly 12 repetitions Literal } " Literal ) A numbered capture group. [\s*=\s*] \s*=\s* Whitespace, any number of repetitions = Whitespace, any number of repetitions A numbered capture group. [".+?"] ".+?" " Any character, one or more repetitions, as few as possible " A numbered capture group. [\s*,\s*] \s*,\s* Whitespace, any number of repetitions , Whitespace, any number of repetitions A numbered capture group. ["(?<ProjectPath>.+?.csproj)"] "(?<ProjectPath>.+?.csproj)" " [ProjectPath]: A named capture group. [.+?.csproj] .+?.csproj Any character, one or more repetitions, as few as possible Any character csproj " A numbered capture group. [\s*,\s*] \s*,\s* Whitespace, any number of repetitions , Whitespace, any number of repetitions A numbered capture group. ["\{[A-F0-9]{8}(-[A-F0-9]{4}){3}-[A-F0-9]{12}\}"] "\{[A-F0-9]{8}(-[A-F0-9]{4}){3}-[A-F0-9]{12}\}" " Literal { Any character in this class: [A-F0-9], exactly 8 repetitions [9]: A numbered capture group. [-[A-F0-9]{4}], exactly 3 repetitions -[A-F0-9]{4} - Any character in this class: [A-F0-9], exactly 4 repetitions - Any character in this class: [A-F0-9], exactly 12 repetitions Literal } "
public static Regex,System.Text.RegularExpressions projectPathsRegex
return System.Text.RegularExpressions.Regex