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); 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)); 315? [new(KnownProperties.Project.LaunchCommand, "ide"), new(KnownProperties.Project.Configuration, buildConfiguration)] 316: [new(KnownProperties.Project.LaunchCommand, "ide")]; 319return [new(KnownProperties.Project.LaunchCommand, null)]; 325return [new(KnownProperties.Project.LaunchCommand, null)]; 332return [new(KnownProperties.Project.LaunchCommand, null)]; 359return [new(KnownProperties.Project.LaunchCommand, null)]; 369return [new(KnownProperties.Project.LaunchCommand, null)]; 389return [new(KnownProperties.Project.LaunchCommand, null)]; 399return [new(KnownProperties.Project.LaunchCommand, null)]; 406properties.Add(new(KnownProperties.Project.LaunchCommand, launchCommand)); 409properties.Add(new(KnownProperties.Project.Configuration, configuration)); 414properties.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)
49Assert.Equal(KnownProperties.Project.Path, property.Name);
Aspire.Hosting.Tests (55)
Dcp\ResourceSnapshotBuilderTests.cs (55)
85AssertHighlightedProperty(snapshot, KnownProperties.Project.Path, "Project path", isSensitive: false, sortOrder: 0); 86AssertHighlightedProperty(snapshot, KnownProperties.Project.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1); 158Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 161Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 165Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 167Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.TargetFramework)); 168Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 215snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 216or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework), 219Assert.Equal(KnownProperties.Project.LaunchCommand, property.Name); 265Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 266Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 267Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.Project.TargetPath 268or KnownProperties.Project.UseAppHost)); 311Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.Project.Path).Value); 314Assert.Equal("direct", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 317snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration).Select(property => property.Value)); 318Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.Project.TargetPath).Value); 319Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.Project.UseAppHost).Value); 320Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 356Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 357or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework 358or KnownProperties.Project.TargetPath or KnownProperties.Project.UseAppHost)); 418Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value)); 419Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.Configuration).Value)); 420Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value)); 422Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 423Assert.False(GetProperty(snapshot, KnownProperties.Project.Configuration).IsSensitive); 424Assert.False(GetProperty(snapshot, KnownProperties.Project.TargetFramework).IsSensitive); 456new(KnownProperties.Project.Configuration, "stale-configuration"), 457new(KnownProperties.Project.TargetFramework, "stale-framework"), 465Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 466Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 467Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.TargetFramework)); 501Properties = [new(KnownProperties.Project.Configuration, "stale-configuration")] 508Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 509Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 541snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 542or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework), 545Assert.Equal(KnownProperties.Project.LaunchCommand, property.Name); 570snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 571or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework), 574Assert.Equal(KnownProperties.Project.LaunchCommand, property.Name); 603Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 604Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 605Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value); 626var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 650var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 743AssertHighlightedProperty(projectSnapshot, KnownProperties.Project.Path, "Project path", isSensitive: false, sortOrder: 0); 744AssertHighlightedProperty(projectSnapshot, KnownProperties.Project.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1);