24 references to SetConfigurationInFileAsync
aspire (4)
Configuration\ConfigurationService.cs (1)
33
await
SetConfigurationInFileAsync
(settingsFilePath, key, value, cancellationToken);
Projects\ProjectLocator.cs (3)
1344
await ConfigurationService.
SetConfigurationInFileAsync
(settingsFile.FullName, AspireConfigAppHostPathKey, relativePathToProjectFile, cancellationToken);
1350
await ConfigurationService.
SetConfigurationInFileAsync
(settingsFile.FullName, "appHost.language", language.LanguageId.Value, cancellationToken);
1361
await ConfigurationService.
SetConfigurationInFileAsync
(settingsFile.FullName, "sdk.version", inheritedSdkVersion, cancellationToken);
Aspire.Cli.Tests (20)
Commands\ConfigSourceCommandTests.cs (11)
155
await ConfigurationService.
SetConfigurationInFileAsync
(
157
await ConfigurationService.
SetConfigurationInFileAsync
(
340
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.team.repository", "example/local");
341
await ConfigurationService.
SetConfigurationInFileAsync
(path, "appHost.path", "apphost.cs");
434
await ConfigurationService.
SetConfigurationInFileAsync
(rootPath, "appHost.path", "AppHost/apphost.cs");
521
await ConfigurationService.
SetConfigurationInFileAsync
(parentPath, "appHost.path", "selected-project/apphost.cs");
827
await ConfigurationService.
SetConfigurationInFileAsync
(parentPath, "appHost.path", "A/apphost.cs");
863
await ConfigurationService.
SetConfigurationInFileAsync
(
898
await ConfigurationService.
SetConfigurationInFileAsync
(parentPath, "appHost.path", "selected/AppHost/apphost.cs");
1068
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.team.repository", "example/local");
1129
await ConfigurationService.
SetConfigurationInFileAsync
(configPath, "skillSources.team.repository", "example/local");
Configuration\ConfigSourceServiceTests.cs (9)
243
await ConfigurationService.
SetConfigurationInFileAsync
(path, "custom", directory.Name);
246
await ConfigurationService.
SetConfigurationInFileAsync
(globalFile.FullName, "docs.custom", global.Name);
1061
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.local.repository", "example/local");
1062
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.local.plugins.0", "existing");
1063
await ConfigurationService.
SetConfigurationInFileAsync
(path, "docs.llmsTxtUrl", "https://local.example/docs");
1090
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.team.repository", "example/local");
1091
await ConfigurationService.
SetConfigurationInFileAsync
(path, "docs.llmsTxtUrl", "https://local.example/docs");
1538
await ConfigurationService.
SetConfigurationInFileAsync
(path, "custom", "intervening edit");
1640
await ConfigurationService.
SetConfigurationInFileAsync
(path, "skillSources.team.repository", "example/local");