コード例 #1
0
        private async Task ExecuteAsync(object sender, EventArgs e)
        {
            _logger.Verbose($"PowerClean started in {nameof(PowerCleanProjectCommand)} by {sender.GetType().FullName}.");
            try
            {
                var project = await ProjectHelpers.GetProjectFromContextAsync();

                await _powerShellService.PowerCleanAsync(project);
            }
            catch (Exception exception)
            {
                _logger.Warning(exception, "PowerClean failed cleaning project with exception {exception}.");
            }
        }