78 references to Project
Aspire.Hosting (25)
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 (23)
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));
311
? [new(KnownProperties.
Project
.LaunchCommand, "ide"), new(KnownProperties.
Project
.Configuration, buildConfiguration)]
312
: [new(KnownProperties.
Project
.LaunchCommand, "ide")];
318
return [new(KnownProperties.
Project
.LaunchCommand, null)];
325
return [new(KnownProperties.
Project
.LaunchCommand, null)];
352
return [new(KnownProperties.
Project
.LaunchCommand, null)];
362
return [new(KnownProperties.
Project
.LaunchCommand, null)];
382
return [new(KnownProperties.
Project
.LaunchCommand, null)];
392
return [new(KnownProperties.
Project
.LaunchCommand, null)];
399
properties.Add(new(KnownProperties.
Project
.LaunchCommand, launchCommand));
402
properties.Add(new(KnownProperties.
Project
.Configuration, configuration));
407
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)
48
Assert.Equal(KnownProperties.
Project
.Path, property.Name);
Aspire.Hosting.Tests (50)
Dcp\ResourceSnapshotBuilderTests.cs (50)
85
AssertHighlightedProperty(snapshot, KnownProperties.
Project
.Path, "Project path", isSensitive: false, sortOrder: 0);
86
AssertHighlightedProperty(snapshot, KnownProperties.
Project
.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1);
150
Assert.Equal("ide", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
153
Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
157
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
159
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
202
Assert.Equal("ide", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
203
Assert.Equal("Release", GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
204
Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.TargetPath
205
or KnownProperties.
Project
.UseAppHost));
248
Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.
Project
.Path).Value);
251
Assert.Equal("direct", GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
254
snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration).Select(property => property.Value));
255
Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.
Project
.TargetPath).Value);
256
Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.
Project
.UseAppHost).Value);
257
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
293
Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
294
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework
295
or KnownProperties.
Project
.TargetPath or KnownProperties.
Project
.UseAppHost));
355
Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value));
356
Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value));
357
Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).Value));
359
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).IsSensitive);
360
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.Configuration).IsSensitive);
361
Assert.False(GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).IsSensitive);
393
new(KnownProperties.
Project
.Configuration, "stale-configuration"),
394
new(KnownProperties.
Project
.TargetFramework, "stale-framework"),
402
Assert.Null(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
403
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
404
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.TargetFramework));
438
Properties = [new(KnownProperties.
Project
.Configuration, "stale-configuration")]
445
Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.
Project
.Configuration));
446
Assert.Null(GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
478
snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
479
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework),
482
Assert.Equal(KnownProperties.
Project
.LaunchCommand, property.Name);
507
snapshot.Properties.Where(property => property.Name is KnownProperties.
Project
.LaunchCommand
508
or KnownProperties.
Project
.Configuration or KnownProperties.
Project
.TargetFramework),
511
Assert.Equal(KnownProperties.
Project
.LaunchCommand, property.Name);
540
Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand).Value);
541
Assert.Equal("Release", GetProperty(snapshot, KnownProperties.
Project
.Configuration).Value);
542
Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.
Project
.TargetFramework).Value);
563
var launchCommand = GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand);
587
var launchCommand = GetProperty(snapshot, KnownProperties.
Project
.LaunchCommand);
680
AssertHighlightedProperty(projectSnapshot, KnownProperties.
Project
.Path, "Project path", isSensitive: false, sortOrder: 0);
681
AssertHighlightedProperty(projectSnapshot, KnownProperties.
Project
.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1);