Beispiel #1
0
        public void Cleanup(IProgressMonitor pm)
        {
            var packagesDirectory = new DirectoryInfo(PackageDirectory);

            if (packagesDirectory.Exists)
            {
                try
                {
                    packagesDirectory.Delete(true);
                }
                catch (System.IO.IOException ex)
                {
                    pm.Warning(string.Format("Couldn't delete package directory - it's probably held open by something else: {0}", ex.Message));
                }
            }
        }