2

Closed

Fix for project names including a "."

description

SolutionSorter does not work with project names including a dot ".", e.g. "My.Project".
For a fix change the RegEx for ParseSolutionItem in SolutionSorter\Core\ContentSorter.cs:
 
private SolutionItem ParseSolutionItem(string text)
{
[...]
// "Project(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"My.Project\", \"My.Project\", \"{FC26EBA3-5062-4B2C-AF92-3A113A2DEDBF}\"\r\nEndProject\r\n"
//  Match match = Regex.Match(text, "^.*\\s*=\\s*\"(\\w+)\"\\s*,\\s*\"(.*)\"\\s*,\\s*\"(\\{.+\\})\""); 
    Match match = Regex.Match(text, "^.*\\s*=\\s*\"(.+)\"\\s*,\\s*\"(.*)\"\\s*,\\s*\"(\\{.+\\})\"");
[...]
}
 
Thanks for SolutionSorter.
Closed Oct 28, 2009 at 12:05 AM by jeffdoolittle
Patch applied.

comments

zbowling wrote Oct 14, 2009 at 10:31 PM

changing it to "^.\s=\s\"([^\"]+)\"\s,\s\"([^\"])\"\s*,\s*\"(\{.+\})\""; adds support for spaces and periods.

wrote Oct 28, 2009 at 12:05 AM

wrote Feb 13, 2013 at 2:06 AM

wrote May 15, 2013 at 1:34 AM