コード例 #1
0
        public int Build(Project project)
        {
            var helper = new UnityInstallationHelper();
            var args   = GetDefaultArgsBatch(project);

            var editorPath = helper.GetBestEditor(project.EditorVersion);

            return(Execute(editorPath, args));
        }
コード例 #2
0
        public int Test(Project project)
        {
            var helper = new UnityInstallationHelper();
            var args   = GetDefaultArgsBatch(project, quit: false);

            if (!Args.RunTests)
            {
                args.Enqueue($"-runTests");
            }

            var editorPath = helper.GetBestEditor(project.EditorVersion);

            return(Execute(editorPath, args));
        }
コード例 #3
0
        public int Open(Project project)
        {
            var helper = new UnityInstallationHelper();
            var args   = new Queue <string>(Args);

            if (Args.ProjectPath is null)
            {
                args.Enqueue($"-projectPath");
                args.Enqueue($"{project.Path}");
            }

            var editorPath = helper.GetBestEditor(project.EditorVersion);

            return(Execute(editorPath, args));
        }