示例#1
0
        protected override async Task ExecuteAsync(IEntityValue projectEntity, ILaunchSettingsActionService launchSettingsActionService, CancellationToken cancellationToken)
        {
            ILaunchProfile?newLaunchProfile = await launchSettingsActionService.AddLaunchProfileAsync(_executableStep.CommandName, _executableStep.NewProfileName, cancellationToken);

            if (newLaunchProfile is not null)
            {
                AddedLaunchProfiles.Add((projectEntity, newLaunchProfile));
            }
        }
示例#2
0
        protected override async Task ExecuteAsync(IEntityValue projectEntity, ILaunchSettingsActionService launchSettingsActionService, CancellationToken cancellationToken)
        {
            await launchSettingsActionService.RemoveLaunchProfileAsync(_executableStep.ProfileName, cancellationToken);

            RemovedLaunchProfiles.Add((projectEntity, _executableStep.ProfileName));
        }