コード例 #1
0
        public HostInteraction(RestoreTask task)
        {
            string cwd = Path.GetDirectoryName(task.FileName);

            WorkingDirectory = cwd;
            Logger           = new Logger(task);
        }
コード例 #2
0
        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]);
        }