Add Extended Version info to XamMac

Having an easy way to access the SDK's is convenient since this information is retrieved by the IDE.
This commit is contained in:
Juan Diego Herrera 2022-11-02 12:57:06 -07:00
Родитель 627737bf83
Коммит 7e8233fc97
2 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@ namespace Xamarin.MacDev {
case "Branch": case "Branch":
rv.Branch = value; rv.Branch = value;
break; break;
case "BuildDate": case "Build date":
rv.BuildDate = value; rv.BuildDate = value;
break; break;
} }

Просмотреть файл

@ -27,6 +27,7 @@ namespace Xamarin.MacDev {
string monoMacAppLauncherPath; string monoMacAppLauncherPath;
PDictionary versions; PDictionary versions;
ExtendedVersion extended_version;
public bool IsInstalled { get; private set; } public bool IsInstalled { get; private set; }
@ -303,5 +304,17 @@ namespace Xamarin.MacDev {
public bool SupportsSiriIntents { public bool SupportsSiriIntents {
get { return CheckSupportsFeature ("siri-intents"); } get { return CheckSupportsFeature ("siri-intents"); }
} }
public ExtendedVersion ExtendedVersion
{
get
{
if (extended_version == null)
{
extended_version = ExtendedVersion.Read(Path.Combine(FrameworkDirectory, "buildinfo"));
}
return extended_version;
}
}
} }
} }