Instead of stopping on the first csproj we find and assuming it's in the solution, we now keep looking up through all directories, through all csproj files, until we either run out of directories or find a project that is in the solution.