Exemple #1
0
        /// <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);
            }
        }
Exemple #2
0
        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 });
            }
        }