Ejemplo n.º 1
0
        private async Task InstallSuiteAsync()
        {
            var nugetIndexUrl = await _nuGetIndexUrlService.GetAsync();

            if (nugetIndexUrl == null)
            {
                return;
            }

            try
            {
                var result = CmdHelper.RunCmd("dotnet tool install " + SuitePackageName + " --add-source " + nugetIndexUrl + " -g");

                if (result == 0)
                {
                    Logger.LogInformation("ABP Suite has been successfully installed.");
                    Logger.LogInformation("You can run it with the CLI command \"abp suite\"");
                }
                else
                {
                    ShowSuiteManualInstallCommand();
                }
            }
            catch (Exception e)
            {
                Logger.LogError("Couldn't install ABP Suite." + e.Message);
                ShowSuiteManualInstallCommand();
            }
        }
Ejemplo n.º 2
0
        private async Task InstallSuiteAsync()
        {
            var nugetIndexUrl = await _nuGetIndexUrlService.GetAsync();

            if (nugetIndexUrl == null)
            {
                return;
            }

            var result = CmdHelper.RunCmd("dotnet tool install " + SuitePackageName + " --add-source " + nugetIndexUrl + " -g");

            if (result == 0)
            {
                Logger.LogInformation("ABP Suite has been successfully installed.");
                Logger.LogInformation("You can run it with the CLI command \"abp suite\"");
            }
        }