84 references to Project
Aspire.Hosting (26)
Dashboard\ResourcePropertySnapshotMetadata.cs (2)
50
(KnownResourceTypes.Project, KnownProperties.
Project
.Path) => (ResourcePropertyProjectPathDisplayName, true, 0),
51
(KnownResourceTypes.Project, KnownProperties.
Project
.LaunchProfile) => (ResourcePropertyProjectLaunchProfileDisplayName, true, 1),
Dcp\ResourceSnapshotBuilder.cs (24)
187
.RemoveResourceProperty(KnownProperties.
Project
.LaunchCommand)
188
.RemoveResourceProperty(KnownProperties.
Project
.Configuration)
189
.RemoveResourceProperty(KnownProperties.
Project
.TargetFramework)
190
.RemoveResourceProperty(KnownProperties.
Project
.TargetPath)
191
.RemoveResourceProperty(KnownProperties.
Project
.UseAppHost);
206
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Project
.Path, projectPath),
207
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Project
.LaunchProfile, launchProfileName),
282
directProperties.Add(new(KnownProperties.
Project
.LaunchCommand, "direct"));
285
directProperties.Add(new(KnownProperties.
Project
.Configuration, directBuildConfiguration));
289
directProperties.Add(new(KnownProperties.
Project
.TargetPath, buildTarget.TargetPath));
290
directProperties.Add(new(KnownProperties.
Project
.UseAppHost, buildTarget.UseAppHost));
315
? [new(KnownProperties.
Project
.LaunchCommand, "ide"), new(KnownProperties.
Project
.Configuration, buildConfiguration)]
316
: [new(KnownProperties.
Project
.LaunchCommand, "ide")];
319
return [new(KnownProperties.
Project
.LaunchCommand, null)];
325
return [new(KnownProperties.
Project
.LaunchCommand, null)];
332
return [new(KnownProperties.
Project
.LaunchCommand, null)];
359
return [new(KnownProperties.
Project
.LaunchCommand, null)];
369
return [new(KnownProperties.
Project
.LaunchCommand, null)];
389
return [new(KnownProperties.
Project
.LaunchCommand, null)];
399
return [new(KnownProperties.
Project
.LaunchCommand, null)];
406
properties.Add(new(KnownProperties.
Project
.LaunchCommand, launchCommand));
409
properties.Add(new(KnownProperties.
Project
.Configuration, configuration));
414
properties.Add(new(KnownProperties.
Project
.TargetFramework, targetFramework));
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (2)
202
new(KnownProperties.
Project
.Path, projectPath)
227
new(KnownProperties.
Project
.Path, resolvedPath)
Aspire.Hosting.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
49
Assert.Equal(KnownProperties.
Project
.Path, property.Name);
Aspire.Hosting.Tests (55)
Dcp\ResourceSnapshotBuilderTests.cs (55)
85
AssertHighlightedProperty(snapshot, KnownProperties.
Project
.Path, "Project path", isSensitive: false, sortOrder: 0);
86
AssertHighlightedProperty(snapshot, KnownProperties.
Project
.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1);
158
Assert.Equal("ide", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
161
Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
165
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
167
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.TargetFramework));
168
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
215
snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
216
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework),
219
Assert.Equal(KnownProperties.
Project
.LaunchCommand, property.Name);
265
Assert.Equal("ide", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
266
Assert.Equal("Release", GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
267
Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.TargetPath
268
or KnownProperties.
Project
.UseAppHost));
311
Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.
Project
.Path).Value);
314
Assert.Equal("direct", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
317
snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration).Select(property => property.Value));
318
Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.
Project
.TargetPath).Value);
319
Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.
Project
.UseAppHost).Value);
320
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
356
Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
357
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework
358
or KnownProperties.
Project
.TargetPath or KnownProperties.
Project
.UseAppHost));
418
Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value));
419
Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value));
420
Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).Value));
422
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
423
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.Configuration).IsSensitive);
424
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).IsSensitive);
456
new(KnownProperties.
Project
.Configuration, "stale-configuration"),
457
new(KnownProperties.
Project
.TargetFramework, "stale-framework"),
465
Assert.Null(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
466
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
467
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.TargetFramework));
501
Properties = [new(KnownProperties.
Project
.Configuration, "stale-configuration")]
508
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
509
Assert.Null(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
541
snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
542
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework),
545
Assert.Equal(KnownProperties.
Project
.LaunchCommand, property.Name);
570
snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
571
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework),
574
Assert.Equal(KnownProperties.
Project
.LaunchCommand, property.Name);
603
Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
604
Assert.Equal("Release", GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
605
Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).Value);
626
var launchCommand = GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand);
650
var launchCommand = GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand);
743
AssertHighlightedProperty(projectSnapshot, KnownProperties.
Project
.Path, "Project path", isSensitive: false, sortOrder: 0);
744
AssertHighlightedProperty(projectSnapshot, KnownProperties.
Project
.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1);