コード例 #1
0
        private static bool IsVSForMac(string externalEditor, out Version vsfmVersion)
        {
            vsfmVersion = null;

            if (!ScriptEditorUtility.IsVisualStudioForMac(externalEditor))
            {
                return(false);
            }

            // We need to extract the version used by VS for Mac
            // to lookup its addin registry
            try
            {
                return(GetVSForMacVersion(externalEditor, out vsfmVersion));
            }
            catch (Exception e)
            {
                Console.WriteLine("Failed to read Visual Studio for Mac information: {0}", e);
                return(false);
            }
        }