protected override async Task ValidateParameters() { await base.ValidateParameters().ConfigureAwait(false); if (string.IsNullOrEmpty(ProjectName)) { throw new CommandException("Please specify a project using the project parameter: --project=MyProject"); } if (!EnvironmentNames.Any()) { throw new CommandException( "Please specify an environment using the environment parameter: --environment=MyEnvironment"); } }
protected override void ValidateParameters() { base.ValidateParameters(); if (string.IsNullOrEmpty(ProjectName)) { throw new CommandException("Please specify a project using the project parameter: --project=MyProject"); } if (!EnvironmentNames.Any()) { throw new CommandException( "Please specify an environment using the environment parameter: --environment=MyEnvironment"); } }