Exemple #1
0
        private void CreateBuildDirectory()
        {
            Console.WriteLine($"Creating build directory at {_build}");

            if (Directory.Exists(_build))
            {
                DirectoryEx.DeleteAll(_build, true);
            }

            Directory.CreateDirectory(_build);

            Environment.CurrentDirectory = _build;
        }
Exemple #2
0
        public void Dispose()
        {
            if (!_disposed)
            {
                try
                {
                    DirectoryEx.DeleteAll(Path, true);
                }
                catch
                {
                    // Ignore exceptions.
                }

                _disposed = true;
            }
        }