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
itemstringFull 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
nameOfFolderstring
Returns
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
loggerILoggerLogger instance
projectsList<string>List of project names
fullPathFolderstringFull path to solution folder
isSellingboolIf true, returns only selling modules
toSellingPpkOnDriveDCSelling configuration
Returns
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
isRemovingVsFoldersboolIf true, removes Visual Studio temp folders
folderPathstringFolder path to scan
isReturningOnlyNamesboolIf true, returns only folder names; if false, returns full paths
Returns
RemoveVsFolders(bool, List<string>)
Removes Visual Studio temp folders from list
public static void RemoveVsFolders(bool isRemovingVsFolders, List<string> directories)
Parameters
isRemovingVsFoldersboolIf true, removes VS folders
directoriesList<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
namestringSolution name or web address to find.
Returns
- SolutionFolder
Matching solution folder or null if not found.