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
loggerILoggerLogger instance for logging operations.
slnFolderstringSolution folder to search for csproj files.
Returns
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
Returns
GetCsprojInSwdNotmineAndSunamo(ILogger)
Gets csproj files from the PlatformIndependentNuGetPackages solution folder.
public static CsprojsInSolution GetCsprojInSwdNotmineAndSunamo(ILogger logger)
Parameters
loggerILoggerLogger 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
Returns
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
loggerILoggerLogger 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
loggerILoggerLogger instance for logging operations.
slnFolderstringSolution folder to search for csproj files.
Returns
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)