コード例 #1
0
 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);
 }
コード例 #2
0
 public static void CleanFontCache()
 {
     if (FontResolver.createdAnyFontResolvers)
     {
         return;
     }
     try
     {
         ProjectPathHelper.CleanDirectory(FontResolver.fontCacheLocation, true);
     }
     catch
     {
     }
 }