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:
Родитель
627737bf83
Коммит
7e8233fc97
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче