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
loggerILoggerLogger instance
projectstringProject path
deleteboolWhether to delete files
folderWithTemporaryMovedContentWithoutBackslashstringFolder for temporary moved content
Returns
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
loggerILoggerLogger instance for logging operations
solutionFolderstringPath to solution folder to clear
deleteboolWhether to delete files or just list them
folderWithTemporaryMovedContentWithoutBackslashstringFolder for storing temporarily moved content
keepPackageJsonboolWhether to keep package.json files (default: false)
Returns
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
folderWithTemporaryMovedContentWithoutBackslashstringPath to folder with temporary moved content (without trailing backslash)
Returns
- bool
True if operation succeeded, false if folder cannot be removed