public HostInteraction(RestoreTask task) { string cwd = Path.GetDirectoryName(task.FileName); WorkingDirectory = cwd; Logger = new Logger(task); }
public static Dependencies FromTask(RestoreTask task) { if (!_cache.ContainsKey(task.FileName)) { var hostInteraction = new HostInteraction(task); _cache[task.FileName] = new Dependencies(hostInteraction); } return(_cache[task.FileName]); }