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