Ejemplo n.º 1
0
        protected void SafeDelete(string folder)
        {
            if (!Directory.Exists(folder))
            {
                return;
            }

            try
            {
                Directory.Delete(folder, true);
                vsOutputPaneService.WriteMessage($"Folder {folder} deleted");
            }
            catch (Exception ex)
            {
                errorHandlerService.WriteErrorMessage($"Could not delete folder {folder}", ex);
            }
        }
Ejemplo n.º 2
0
 public void WriteErrorMessage(string message, Exception ex) => vsOutputPaneService.WriteMessage($"Error: {message}; {ex}");