public static object CleanPartialCompileDirectory() { try { string str = Microsoft.Expression.Framework.Documents.PathHelper.ResolveCombinedPath(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), PartialXamlBuilder.DefaultXamlCopyDirectory); ProjectPathHelper.CleanDirectory(str, true); } catch (IOException oException) { } return(null); }
public static void CleanFontCache() { if (FontResolver.createdAnyFontResolvers) { return; } try { ProjectPathHelper.CleanDirectory(FontResolver.fontCacheLocation, true); } catch { } }