Table of Contents

Class SolutionsIndexerHelper

Namespace
SunamoDevCode.SunamoSolutionsIndexer
Assembly
SunamoDevCode.dll

Helper methods for solution indexing, finding, and managing projects within solutions.

public class SolutionsIndexerHelper
Inheritance
SolutionsIndexerHelper
Inherited Members
Extension Methods

Methods

GetDisplayedSolutionName(string)

Builds a display-friendly solution name by combining parent folder names up to the solutions root.

public static string GetDisplayedSolutionName(string item)

Parameters

item string

Full path to the solution folder.

Returns

string

Slash-separated display name for the solution.

IsTheSolutionsFolder(string)

not full path, only name of folder for more accurate deciding

public static bool IsTheSolutionsFolder(string nameOfFolder)

Parameters

nameOfFolder string

Returns

bool

ModulesInSolution(ILogger, List<string>, string, bool, PpkOnDriveDC)

Gets modules in solution from UserControl/UC/UserControls folders

public static List<string> ModulesInSolution(ILogger logger, List<string> projects, string fullPathFolder, bool isSelling, PpkOnDriveDC toSelling)

Parameters

logger ILogger

Logger instance

projects List<string>

List of project names

fullPathFolder string

Full path to solution folder

isSelling bool

If true, returns only selling modules

toSelling PpkOnDriveDC

Selling configuration

Returns

List<string>

List of module paths

ProjectsInSolution(bool, string, bool)

Finds projects as subfolders with optional VS folder removal and name-only mode

public static List<string> ProjectsInSolution(bool isRemovingVsFolders, string folderPath, bool isReturningOnlyNames = true)

Parameters

isRemovingVsFolders bool

If true, removes Visual Studio temp folders

folderPath string

Folder path to scan

isReturningOnlyNames bool

If true, returns only folder names; if false, returns full paths

Returns

List<string>

List of project folders

RemoveVsFolders(bool, List<string>)

Removes Visual Studio temp folders from list

public static void RemoveVsFolders(bool isRemovingVsFolders, List<string> directories)

Parameters

isRemovingVsFolders bool

If true, removes VS folders

directories List<string>

List to remove folders from

SolutionWithName(string)

Finds a solution folder by name. Can also accept web names like apps.sunamo.cz.

public static SolutionFolder? SolutionWithName(string name)

Parameters

name string

Solution name or web address to find.

Returns

SolutionFolder

Matching solution folder or null if not found.