Click here to Skip to main content
15,896,063 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd19-Jul-21 19:20
Super Lloyd19-Jul-21 19:20 
GeneralRe: What's your biggest Solution?! PinPopular
CPallini19-Jul-21 19:57
mveCPallini19-Jul-21 19:57 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd19-Jul-21 20:05
Super Lloyd19-Jul-21 20:05 
GeneralRe: What's your biggest Solution?! Pin
Kornfeld Eliyahu Peter19-Jul-21 22:43
professionalKornfeld Eliyahu Peter19-Jul-21 22:43 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd19-Jul-21 23:52
Super Lloyd19-Jul-21 23:52 
GeneralRe: What's your biggest Solution?! Pin
Amarnath S19-Jul-21 23:16
professionalAmarnath S19-Jul-21 23:16 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd19-Jul-21 23:52
Super Lloyd19-Jul-21 23:52 
GeneralRe: What's your biggest Solution?! Pin
OriginalGriff19-Jul-21 23:43
mveOriginalGriff19-Jul-21 23:43 
29.
I actually had to knock up some code to find out ...
-"cs"
            string basePath = @"D:\Documents\AA Backed Up\My Projects";
            string[] projects = Directory.GetFiles(basePath, "*.csproj", SearchOption.AllDirectories);
            var solutions = projects.GroupBy(p => ExtractSolution(p, basePath))
                                    .Select(g => new { Solution = g.Key, ProjectCount = g.Count() })
                                    .OrderByDescending(a => a.ProjectCount);
            foreach (var solution in solutions)
                {
                Console.WriteLine($"{solution.Solution} : {solution.ProjectCount}");
                }
...
        string ExtractSolution(string p, string b)
            {
            string result = p.Substring(b.Length + 1);
            result = result.Substring(0, result.IndexOf('\\'));
            return result;
            }

"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: What's your biggest Solution?! Pin
Super Lloyd19-Jul-21 23:53
Super Lloyd19-Jul-21 23:53 
GeneralRe: What's your biggest Solution?! Pin
musefan19-Jul-21 23:56
musefan19-Jul-21 23:56 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd20-Jul-21 1:38
Super Lloyd20-Jul-21 1:38 
GeneralRe: What's your biggest Solution?! Pin
Greg Utas20-Jul-21 0:43
professionalGreg Utas20-Jul-21 0:43 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd20-Jul-21 1:37
Super Lloyd20-Jul-21 1:37 
JokeRe: What's your biggest Solution?! Pin
musefan20-Jul-21 2:34
musefan20-Jul-21 2:34 
GeneralRe: What's your biggest Solution?! Pin
Greg Utas20-Jul-21 2:57
professionalGreg Utas20-Jul-21 2:57 
GeneralRe: What's your biggest Solution?! Pin
Sander Rossel20-Jul-21 0:58
professionalSander Rossel20-Jul-21 0:58 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd20-Jul-21 1:36
Super Lloyd20-Jul-21 1:36 
GeneralRe: What's your biggest Solution?! Pin
Sander Rossel20-Jul-21 2:15
professionalSander Rossel20-Jul-21 2:15 
GeneralRe: What's your biggest Solution?! Pin
Super Lloyd20-Jul-21 10:26
Super Lloyd20-Jul-21 10:26 
GeneralRe: What's your biggest Solution?! Pin
snorkie20-Jul-21 2:53
professionalsnorkie20-Jul-21 2:53 
GeneralRe: What's your biggest Solution?! Pin
englebart22-Jul-21 14:20
professionalenglebart22-Jul-21 14:20 
GeneralRe: What's your biggest Solution?! Pin
GuyThiebaut20-Jul-21 1:03
professionalGuyThiebaut20-Jul-21 1:03 
GeneralRe: What's your biggest Solution?! Pin
Davyd McColl20-Jul-21 23:12
Davyd McColl20-Jul-21 23:12 
GeneralRe: What's your biggest Solution?! Pin
PSU Steve21-Jul-21 3:06
professionalPSU Steve21-Jul-21 3:06 
GeneralRe: What's your biggest Solution?! Pin
Gary Wheeler21-Jul-21 3:53
Gary Wheeler21-Jul-21 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.