Exemple #1
0
        public static bool IsValidDMDInstallForVersion(int majorVersion, string path)
        {
            bool isValid = false;
            CompilerInstallInfo installInfo = LocalCompiler.AddPath(path);

            if (installInfo != null)
            {
                isValid = (installInfo.VersionInfo.Major == majorVersion);
            }

            return(isValid);
        }
Exemple #2
0
 private static void Preload()
 {
     try
     {
         LocalCompiler.Refresh();
         DigitalMars.PreloadFromHtmlList(fileListLocation);
         DigitalMars.Preload();
         LocalCompiler.Preload();
     }
     catch (ThreadAbortException)
     {
         //do nothing now - just return
     }
     catch (Exception)
     {
         //do nothing now - just return
     }
 }
Exemple #3
0
 public static void Refresh()
 {
     LocalCompiler.Refresh();
 }