예제 #1
0
        static void Reload()
        {
            var monotouch = Environment.GetEnvironmentVariable(MTOUCH_LOCATION_ENV_VAR);

            if (string.IsNullOrEmpty(monotouch))
            {
                foreach (var location in MonoTouchSdk.DefaultLocations)
                {
                    if (Directory.Exists(location))
                    {
                        monotouch = location;
                        break;
                    }
                }
            }

            XamIOS = new MonoTouchSdk(monotouch);
            IOS    = new AppleIPhoneSdk(AppleSdkSettings.DeveloperRoot, AppleSdkSettings.DeveloperRootVersionPlist);
            Watch  = new AppleWatchSdk(AppleSdkSettings.DeveloperRoot, AppleSdkSettings.DeveloperRootVersionPlist);
            TVOS   = new AppleTVOSSdk(AppleSdkSettings.DeveloperRoot, AppleSdkSettings.DeveloperRootVersionPlist);

            XamMac = new XamMacSdk(null);
            MacOS  = new MacOSXSdk(AppleSdkSettings.DeveloperRoot, AppleSdkSettings.DeveloperRootVersionPlist);
        }
 public MacOSXSdkVersion ResolveIfDefault(MacOSXSdk sdk)
 {
     return(IsUseDefault ? GetDefault(sdk) : this);
 }
        public static MacOSXSdkVersion GetDefault(MacOSXSdk sdk)
        {
            var v = sdk.GetInstalledSdkVersions();

            return(v.Count > 0 ? v [v.Count - 1] : UseDefault);
        }