141 references to Project
aspire (25)
Agents\AgentPath.cs (2)
51
var displayPath = GetDisplayPath(path, AgentConfigurationScope.
Project
, workspaceRoot, executionContext);
60
var root = scope is AgentConfigurationScope.
Project
? workspaceRoot : executionContext.HomeDirectory;
Agents\AspireSkills\LocalAspireSkills.cs (1)
49
(Path: Path.Combine(root.FullName, location.Directory), Scope: AgentConfigurationScope.
Project
, location.Owners)))
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (4)
59
=> Path.Combine(scope is AgentConfigurationScope.
Project
71
var directory = scope is AgentConfigurationScope.
Project
87
=> scope is AgentConfigurationScope.
Project
? Path.Combine(workspaceRoot.FullName, ".mcp.json")
305
if (scope is AgentConfigurationScope.
Project
)
Agents\Copilot\CopilotAgentClient.cs (5)
48
=> Path.Combine(scope is AgentConfigurationScope.
Project
? workspaceRoot.FullName : context.HomeDirectory.FullName,
57
var directory = scope is AgentConfigurationScope.
Project
70
=> scope is AgentConfigurationScope.
Project
? Path.Combine(workspaceRoot.FullName, ".mcp.json")
77
if (scope is AgentConfigurationScope.
Project
)
190
if (scope is AgentConfigurationScope.
Project
)
Agents\OpenCode\OpenCodeAgentClient.cs (6)
48
=> Path.Combine(scope is AgentConfigurationScope.
Project
? workspaceRoot.FullName : context.HomeDirectory.FullName,
52
=> scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetProjectConfigPath(workspaceRoot)
68
var candidates = scope is AgentConfigurationScope.
Project
159
=> scope is AgentConfigurationScope.
Project
173
foreach (var path in scope is AgentConfigurationScope.
Project
? CatalogSettings(workspaceRoot) : GlobalCatalogSettings())
193
scope is AgentConfigurationScope.
Project
? CatalogSettings(workspaceRoot) : GlobalCatalogSettings(),
Agents\Playwright\PlaywrightCliInstaller.cs (2)
338
client.GetSkillBaseDirectory(AgentConfigurationScope.
Project
, workspaceRoot)))
356
.GetSkillBaseDirectory(AgentConfigurationScope.
Project
, new DirectoryInfo(repoRoot)));
Commands\AgentInitCommand.cs (3)
265
PromptBinding.Create(parseResult, s_scopeOption, AgentConfigurationScope.
Project
),
523
new[] { AgentConfigurationScope.
Project
, AgentConfigurationScope.Global },
524
value => value is AgentConfigurationScope.
Project
Commands\InitCommand.cs (1)
220
PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.
Project
),
Commands\NewCommand.cs (1)
821
PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.
Project
),
Aspire.Cli.Tests (116)
Agents\AgentConfigurationTests.cs (16)
196
var path = _context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project);
205
config, _context.Project, AgentConfigurationScope.
Project
, edit, _context.Sources, CancellationToken.None);
222
var path = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project);
226
config, _context.Project, AgentConfigurationScope.
Project
, edit, _context.Sources, CancellationToken.None);
252
var path = _context.ClaudeCode.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project);
256
config, _context.Project, AgentConfigurationScope.
Project
, edit, _context.Sources, CancellationToken.None);
280
var path = _context.ClaudeCode.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project);
284
config, _context.Project, AgentConfigurationScope.
Project
, edit, _context.Sources, CancellationToken.None);
524
var projectResults = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, clients).DefaultTimeout();
575
await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.ClaudeCode]).DefaultTimeout();
597
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout();
603
Assert.False(File.Exists(client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project)));
624
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.ClaudeCode]);
655
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.ClaudeCode]);
741
AgentConfigurationScope.
Project
, [_context.Copilot, _context.ClaudeCode]);
755
AgentConfigurationScope.
Project
, [_context.Copilot], cancellation.Token)).DefaultTimeout();
Agents\AgentPathTests.cs (1)
85
Assert.Equal(homePath, AgentPath.GetDisplayPath(homePath, AgentConfigurationScope.
Project
, _context.Project, _context.ExecutionContext));
Agents\LocalAspireSkillsTests.cs (5)
38
names.Select(name => (Path.Combine(skills, name), AgentConfigurationScope.
Project
)).OrderBy(entry => entry.Item1, StringComparers.FileSystemPath),
66
paths.Select(path => (path, AgentConfigurationScope.
Project
)).OrderBy(entry => entry.path, StringComparers.FileSystemPath),
83
new[] { (project, AgentConfigurationScope.
Project
), (user, AgentConfigurationScope.Global) }
96
Assert.Equal([(skill, AgentConfigurationScope.
Project
), (skill, AgentConfigurationScope.Global)], result);
119
Assert.Equal((selected, AgentConfigurationScope.
Project
), Assert.Single(result));
Agents\OpenCodeAgentClientTests.cs (19)
25
var target = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, _context.Project);
27
Assert.True(client.HasIntegrationRegistration(_context.Project, AgentConfigurationScope.
Project
, _context.Sources));
31
var configured = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]);
57
var result = await _context.ConfigureMcpAsync(_context.OpenCode, AgentConfigurationScope.
Project
);
84
var result = await _context.ConfigureMcpAsync(_context.OpenCode, AgentConfigurationScope.
Project
);
103
var directory = scope is AgentConfigurationScope.
Project
? _context.Project.FullName : _context.OpenCodeDirectory;
117
Assert.Empty((scope is AgentConfigurationScope.
Project
? _context.Home : _context.Project).EnumerateFileSystemInfos());
132
var result = await _context.ConfigureMcpAsync(_context.OpenCode, AgentConfigurationScope.
Project
);
147
var result = await _context.ConfigureMcpAsync(_context.OpenCode, AgentConfigurationScope.
Project
);
158
var result = await _context.ConfigureMcpAsync(_context.OpenCode, AgentConfigurationScope.
Project
);
184
Assert.Empty((scope is AgentConfigurationScope.
Project
? _context.Home : _context.Project).EnumerateFileSystemInfos());
196
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
222
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
253
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
275
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
293
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
306
var directory = scope is AgentConfigurationScope.
Project
? _context.Project.FullName : _context.OpenCodeDirectory;
331
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [_context.OpenCode]);
387
Assert.True(_context.OpenCode.HasIntegrationRegistration(_context.Project, AgentConfigurationScope.
Project
, _context.Sources));
Agents\SkillSourceTests.cs (18)
207
var scope = global ? AgentConfigurationScope.Global : AgentConfigurationScope.
Project
;
236
var path = context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
241
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [context.Copilot]).DefaultTimeout());
258
var path = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
262
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout());
280
client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project),
283
Assert.True(client.HasIntegrationRegistration(context.Project, AgentConfigurationScope.
Project
, context.Sources));
298
var path = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
308
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout());
312
var unchanged = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout());
345
var path = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
356
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout());
369
var results = await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, context.Clients).DefaultTimeout();
392
var path = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
403
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, [client]).DefaultTimeout());
424
context.OpenCode.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project), """{"skills":[]}""");
426
var results = await context.ConfigureIntegrationAsync(AgentConfigurationScope.
Project
, context.Clients).DefaultTimeout();
433
client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project));
Commands\AgentInitClientSelectionTests.cs (27)
42
workspace.WorkspaceRoot, AgentConfigurationScope.
Project
, [SkillSource.BuiltIn]));
45
.HasIntegrationRegistration(workspace.WorkspaceRoot, AgentConfigurationScope.
Project
, [SkillSource.BuiltIn]));
100
var selectedScope = scope == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
205
[InlineData("PrOjEcT", nameof(AgentConfigurationScope.
Project
))]
490
Assert.Equal([AgentConfigurationScope.
Project
, AgentConfigurationScope.Global], choices.Cast<AgentConfigurationScope>());
617
workspace.WorkspaceRoot, AgentConfigurationScope.
Project
, [SkillSource.BuiltIn]));
642
var selectedScope = scope == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
644
var root = selectedScope is AgentConfigurationScope.
Project
? workspace.WorkspaceRoot : homeDirectory;
787
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
789
scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
837
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
838
var configDirectory = Path.GetDirectoryName(scope is AgentConfigurationScope.
Project
892
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
893
var jsoncPath = scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
957
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
958
var jsoncPath = scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
1009
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1010
var jsoncPath = scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
1181
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1232
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1265
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1288
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1289
var path = scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
1327
var scope = scopeName == "project" ? AgentConfigurationScope.
Project
: AgentConfigurationScope.Global;
1328
var path = scope is AgentConfigurationScope.
Project
? OpenCodePaths.GetMcpConfigPath(workspace.WorkspaceRoot)
1521
var scope = global ? AgentConfigurationScope.Global : AgentConfigurationScope.
Project
;
1589
workspace.WorkspaceRoot, AgentConfigurationScope.
Project
, [SkillSource.BuiltIn]));
Commands\AgentInitCommandTests.cs (25)
107
context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)), "json")
216
context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)), "json")
281
client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project))));
458
var skillsRoot = configurationScope is AgentConfigurationScope.
Project
? context.Project : context.Home;
497
workspace.WorkspaceRoot, AgentConfigurationScope.
Project
, SkillSource.Resolve(provider.GetRequiredService<IConfiguration>())));
522
PromptBinding.CreateDefault(AgentConfigurationScope.
Project
),
527
var config = await File.ReadAllTextAsync(context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project));
561
PromptBinding.CreateDefault(AgentConfigurationScope.
Project
),
567
context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)), "json")
857
[InlineData(nameof(AgentConfigurationScope.
Project
))]
873
var scopeRoot = scope is AgentConfigurationScope.
Project
? context.Project : context.Home;
934
context.OpenCode.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project), config.ToJsonString());
960
client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project), original);
981
client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)));
1084
context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project),
1142
var settingsPath = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
1212
[InlineData("copilot", nameof(AgentConfigurationScope.
Project
), ".github/copilot/settings.local.json")]
1213
[InlineData("claude", nameof(AgentConfigurationScope.
Project
), ".claude/settings.local.json")]
1229
scope is AgentConfigurationScope.
Project
1296
context.Project, AgentConfigurationScope.
Project
, [SkillSource.BuiltIn]));
1360
[InlineData(nameof(AgentConfigurationScope.
Project
))]
1397
var integrationPath = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project);
1414
client.GetMcpConfigPath(AgentConfigurationScope.
Project
, context.Project)))!;
1417
Assert.True(File.Exists(context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)));
1418
Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.
Project
, context.Project)));
Commands\ConfigSourceCommandTests.cs (2)
275
await Verify(await File.ReadAllTextAsync(client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, context.Project)), "json")
347
.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, workspace.WorkspaceRoot);
Commands\InitCommandTests.cs (3)
1027
var nativePath = client.GetIntegrationConfigPath(AgentConfigurationScope.
Project
, workspace.WorkspaceRoot);
1104
var unselectedScope = selectedScope is AgentConfigurationScope.
Project
1106
: AgentConfigurationScope.
Project
;