protected override async Task OnTemplatesAvailableAsync()
        {
            TemplateSelection.LoadData(TemplateType, ConfigFramework, ConfigPlatform);
            WizardStatus.IsLoading = false;

            var result = BreakingChangesValidatorService.Validate();

            if (!result.IsValid)
            {
                var messages = result.ErrorMessages.Select(e => new BreakingChangeMessageViewModel(e));
                BreakingChangesErrors.AddRange(messages);
                OnPropertyChanged(nameof(BreakingChangesErrors));

                await Task.CompletedTask;
            }
        }
예제 #2
0
        public override async Task OnTemplatesAvailableAsync()
        {
            ValidationService.Initialize(GetNames, null);
            TemplateSelection.LoadData(TemplateType, ConfigPlatform, ConfigProjectType, ConfigFramework);
            WizardStatus.IsLoading = false;

            var result = BreakingChangesValidatorService.Validate();

            if (!result.IsValid)
            {
                var messages = result.ErrorMessages.Select(e => new BreakingChangeMessageViewModel(e));
                BreakingChangesErrors.AddRange(messages);
                OnPropertyChanged(nameof(BreakingChangesErrors));

                await Task.CompletedTask;
            }

            ValidateProjectPaths();
        }