コード例 #1
0
ファイル: SuiteCommand.cs プロジェクト: yunxuan2016/abp
        private void RunSuite()
        {
            try
            {
                if (!GlobalToolHelper.IsGlobalToolInstalled("abp-suite"))
                {
                    Logger.LogWarning("ABP Suite is not installed! To install it you can run the command: \"abp suite install\"");
                    return;
                }
            }
            catch (Exception ex)
            {
                Logger.LogWarning("Couldn't check ABP Suite installed status: " + ex.Message);
            }

            CmdHelper.RunCmd("abp-suite");
        }
コード例 #2
0
ファイル: SuiteCommand.cs プロジェクト: SecTex/abp
    private Process StartSuite()
    {
        try
        {
            if (!GlobalToolHelper.IsGlobalToolInstalled("abp-suite"))
            {
                Logger.LogWarning("ABP Suite is not installed! To install it you can run the command: \"abp suite install\"");
                return(null);
            }
        }
        catch (Exception ex)
        {
            Logger.LogWarning("Couldn't check ABP Suite installed status: " + ex.Message);
        }

        if (IsSuiteAlreadyRunning())
        {
            return(null);
        }

        return(CmdHelper.RunCmdAndGetProcess("abp-suite --no-browser"));
    }