Table of Contents

Class GetCsprojs

Namespace
SunamoDevCode
Assembly
SunamoDevCode.dll

Provides methods for finding and enumerating csproj files across solutions and project folders.

public class GetCsprojs
Inheritance
GetCsprojs
Inherited Members
Extension Methods

Methods

GetCsprojInSolution(ILogger, string)

Rozdíl oproti GetCsprojInSolution je že vrací v objektu co je z GetCsprojInSolution v Tuple

1 - csprojFolderPaths 2 - csprojPaths

public static (List<string>, List<string>) GetCsprojInSolution(ILogger logger, string slnFolder)

Parameters

logger ILogger

Logger instance for logging operations.

slnFolder string

Solution folder to search for csproj files.

Returns

(List<string>, List<string>)

Tuple of (csprojFolderPaths, csprojPaths).

GetCsprojInSolutionClass(ILogger, string, bool)

Rozdíl oproti GetCsprojInSolution je že vrací v objektu co je z GetCsprojInSolution v Tuple

public static CsprojsInSolution GetCsprojInSolutionClass(ILogger logger, string slnFolder, bool automaticallyAddToUniqueCsprojs = true)

Parameters

logger ILogger
slnFolder string
automaticallyAddToUniqueCsprojs bool

Returns

CsprojsInSolution

GetCsprojInSwdNotmineAndSunamo(ILogger)

Gets csproj files from the PlatformIndependentNuGetPackages solution folder.

public static CsprojsInSolution GetCsprojInSwdNotmineAndSunamo(ILogger logger)

Parameters

logger ILogger

Logger instance for logging operations.

Returns

CsprojsInSolution

Collection of csprojs found in the solution.

GetCsprojsAll(ILogger, bool, bool, bool)

Vrátí plné cesty k složce řešení

public static List<string> GetCsprojsAll(ILogger logger, bool __NotCore_Projects = false, bool __NotCoreWeb_Projects = false, bool __OnlyWindowsCore_Projects = false)

Parameters

logger ILogger
__NotCore_Projects bool
__NotCoreWeb_Projects bool
__OnlyWindowsCore_Projects bool

Returns

List<string>

GetCsprojsAllDict(ILogger)

Gets all csproj files as a dictionary mapping file names to full paths, excluding Runner.csproj.

public static Dictionary<string, string> GetCsprojsAllDict(ILogger logger)

Parameters

logger ILogger

Logger instance for logging operations.

Returns

Dictionary<string, string>

Dictionary of csproj file names to their full paths.

GetCsprojsInSolution(ILogger, string)

Gets all csproj file paths within the specified solution folder. Deprecated in favor of GetCsprojInSolution.

[Obsolete("Tato metoda se zdá být zbytečná. Její práci dělá jiná v tomto souboru.")]
public static List<string> GetCsprojsInSolution(ILogger logger, string slnFolder)

Parameters

logger ILogger

Logger instance for logging operations.

slnFolder string

Solution folder to search for csproj files.

Returns

List<string>

List of csproj file paths.

GetFoldersWithAtLeastOneCsprojInSolution(ILogger, string)

Gets folders that contain exactly one csproj file within the given solution folder.

public static List<string> GetFoldersWithAtLeastOneCsprojInSolution(ILogger logger, string slnFolder)

Parameters

logger ILogger

Logger instance for logging operations.

slnFolder string

Solution folder to search.

Returns

List<string>

List of folder paths containing exactly one csproj.