public ConfigureMenuCallback(CurrentProjectFinder currentProjectFinder, CosturaFileExporter fileExporter, TaskFileReplacer taskFileReplacer, FullPathResolver fullPathResolver, ExceptionDialog exceptionDialog) { this.currentProjectFinder = currentProjectFinder; this.fullPathResolver = fullPathResolver; this.exceptionDialog = exceptionDialog; this.taskFileReplacer = taskFileReplacer; this.fileExporter = fileExporter; }
public TaskFileReplacer(ErrorDisplayer errorDisplayer, CosturaFileExporter fileExporter) { this.errorDisplayer = errorDisplayer; this.fileExporter = fileExporter; Directory.CreateDirectory(Environment.ExpandEnvironmentVariables(@"%appdata%\Costura")); taskFilePath = Environment.ExpandEnvironmentVariables(@"%appdata%\Costura\TaskAssembliesToUpdate.txt"); if (!File.Exists(taskFilePath)) { using (File.Create(taskFilePath)) { } } }