Table of Contents

Class DeleteTemporaryFilesFromSolution

Namespace
SunamoDevCode.Aps.Algorithms
Assembly
SunamoDevCode.dll

EN: Deletes temporary files from Visual Studio solutions CZ: Maže dočasné soubory z Visual Studio solutions

public class DeleteTemporaryFilesFromSolution
Inheritance
DeleteTemporaryFilesFromSolution
Inherited Members
Extension Methods

Methods

ClearProject(ILogger, string, bool, string)

EN: Clears a project of temporary files CZ: Vyčistí projekt od dočasných souborů

public static List<string> ClearProject(ILogger logger, string project, bool delete, string folderWithTemporaryMovedContentWithoutBackslash)

Parameters

logger ILogger

Logger instance

project string

Project path

delete bool

Whether to delete files

folderWithTemporaryMovedContentWithoutBackslash string

Folder for temporary moved content

Returns

List<string>

ClearSolution(ILogger, string, bool, string, bool)

EN: Clears solution folder from temporary files CZ: Vyčistí složku solution od dočasných souborů

public static List<string> ClearSolution(ILogger logger, string solutionFolder, bool delete, string folderWithTemporaryMovedContentWithoutBackslash, bool keepPackageJson = false)

Parameters

logger ILogger

Logger instance for logging operations

solutionFolder string

Path to solution folder to clear

delete bool

Whether to delete files or just list them

folderWithTemporaryMovedContentWithoutBackslash string

Folder for storing temporarily moved content

keepPackageJson bool

Whether to keep package.json files (default: false)

Returns

List<string>

List of files found during the operation

DeleteFolderWithTemporaryMovedFiles(string)

EN: Deletes folder containing temporary moved files and recreates it empty CZ: Smaže složku obsahující dočasně přesunuté soubory a vytvoří ji znovu prázdnou

public static bool DeleteFolderWithTemporaryMovedFiles(string folderWithTemporaryMovedContentWithoutBackslash)

Parameters

folderWithTemporaryMovedContentWithoutBackslash string

Path to folder with temporary moved content (without trailing backslash)

Returns

bool

True if operation succeeded, false if folder cannot be removed