+ static void VerifySdk (string path)
+ {
+ if (!Directory.Exists (path))
+ Error ($"The specified SDK path does not exist: {path}");
+ runtime = Path.Combine (sdk_path, "bin", "mono");
+ if (!File.Exists (runtime))
+ Error ($"The SDK location does not contain a {path}/bin/mono runtime");
+ lib_path = Path.Combine (path, "lib", "mono", "4.5");
+ if (!Directory.Exists (lib_path))
+ Error ($"The SDK location does not contain a {path}/lib/mono/4.5 directory");
+ link_paths.Add (lib_path);
+ }
+
+ static string targets_dir = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), ".mono", "targets");
+
+ static void CommandLocalTargets ()
+ {
+ string [] targets;
+
+ Console.WriteLine ("Available targets locally:");
+ Console.WriteLine ("\tdefault\t- Current System Mono");
+ try {
+ targets = Directory.GetDirectories (targets_dir);
+ } catch {
+ return;
+ }
+ foreach (var target in targets){
+ var p = Path.Combine (target, "bin", "mono");
+ if (File.Exists (p))
+ Console.WriteLine ("\t{0}", Path.GetFileName (target));
+ }
+ }
+