예제 #1
0
        public static string GetMtouchPath(TargetRuntime runtime, TargetFramework fx)
        {
            string mtouchPath = runtime.GetToolPath(fx, "mtouch");

            if (string.IsNullOrEmpty(mtouchPath))
            {
                throw new InvalidOperationException("Cannot upload iPhone application. mtouch tool is missing.");
            }
            return(mtouchPath);
        }
예제 #2
0
        static string GetCompilerName(TargetRuntime runtime, TargetFramework fx)
        {
            string playc = runtime.GetToolPath(fx, "playc");

            if (playc == null)
            {
                playc = GetExternalCompilerPath();
            }
            if (playc == null)
            {
                playc = runtime.GetToolPath(fx, "csc");
            }
            if (playc != null)
            {
                return(playc);
            }
            else
            {
                string message = GettextCatalog.GetString("PlayScript compiler not found for {0}.", fx.Name);
                LoggingService.LogError(message);
                throw new Exception(message);
            }
        }
        static string GetCompilerName(TargetRuntime runtime, TargetFramework fx)
        {
            string csc = runtime.GetToolPath(fx, "csc");

            if (csc != null)
            {
                return(csc);
            }
            else
            {
                string message = GettextCatalog.GetString("C# compiler not found for {0}.", fx.Name);
                LoggingService.LogError(message);
                throw new Exception(message);
            }
        }