/// <summary> /// Helper to check out the debugsettings.json file /// </summary> protected async Task CheckoutSettingsFileAsync() { var sourceControlIntegration = SourceControlIntegrations.FirstOrDefault(); if (sourceControlIntegration != null && sourceControlIntegration.Value != null) { await sourceControlIntegration.Value.CanChangeProjectFilesAsync(new[] { LaunchSettingsFile }).ConfigureAwait(false); } }
protected async Task CheckoutSettingsFileAsync() { Lazy <ISourceCodeControlIntegration, IOrderPrecedenceMetadataView> sourceControlIntegration = SourceControlIntegrations.FirstOrDefault(); if (sourceControlIntegration != null && sourceControlIntegration.Value != null) { string fileName = await GetLaunchSettingsFilePathAsync(); await sourceControlIntegration.Value.CanChangeProjectFilesAsync(new[] { fileName }); } }