コード例 #1
0
ファイル: Mediaportal.cs プロジェクト: fLaSkin/MPExtended
 public static void LogVersionDetails()
 {
     try
     {
         var version = VersionUtil.GetMediaPortalVersion();
         if (version == VersionUtil.MediaPortalVersion.NotAvailable)
         {
             Log.Info("No MediaPortal installed");
         }
         else if (version >= VersionUtil.MediaPortalVersion.MP1_2)
         {
             Log.Debug("Found supported MediaPortal installation ({0}, build {1})", version, VersionUtil.GetMediaPortalBuildVersion());
         }
         else
         {
             Log.Warn("Installed MediaPortal version is not supported! ({0}, build {1})", version, VersionUtil.GetMediaPortalBuildVersion());
         }
     }
     catch (Exception ex)
     {
         Log.Warn("Failed to detect MediaPortal version", ex);
     }
 }