112 references to KnownLaunchConfigurationTypes
Aspire.Hosting (26)
ApplicationModel\DebugSupportExtensions.cs (8)
52/// non-file-based project through <see cref="KnownLaunchConfigurationTypes.Project"/>. Such a resource represents 55/// A session that provides a list without <see cref="KnownLaunchConfigurationTypes.Project"/> cannot use project 61/// When a session advertises <see cref="KnownLaunchConfigurationTypes.Project"/> but not 64/// <see cref="KnownLaunchConfigurationTypes.Project"/> so the IDE launches and debugs the project. When either 171KnownLaunchConfigurationTypes.Project, 319return declaredAnnotation.LaunchConfigurationType == KnownLaunchConfigurationTypes.Project && 332supportedLaunchConfigurations?.Contains(KnownLaunchConfigurationTypes.Project) is true; 355declaredAnnotation?.LaunchConfigurationType is not null and not KnownLaunchConfigurationTypes.Project)
ApplicationModel\ExecutableLaunchConfiguration.cs (2)
78/// <param name="type">The launch configuration type identifier, for example <see cref="KnownLaunchConfigurationTypes.Project"/>.</param> 121public sealed class ProjectLaunchConfiguration() : ExecutableLaunchConfiguration(KnownLaunchConfigurationTypes.Project)
ApplicationModel\ExecutableLaunchRecipe.cs (3)
391if (KnownLaunchConfigurationTypes.IsProject(debugSupport.LaunchConfigurationType) && 562!KnownLaunchConfigurationTypes.IsProject(customDebugSupport.LaunchConfigurationType)) 617KnownLaunchConfigurationTypes.IsProject(type.GetString());
ApplicationModel\ProjectLaunchConfigurationFactory.cs (4)
19$"Resource '{resource.Name}' cannot produce a \"{KnownLaunchConfigurationTypes.Project}\" launch configuration because it has no project metadata. " + 20$"The \"{KnownLaunchConfigurationTypes.Project}\" launch configuration type is reserved for .NET project resources; use a resource that carries {nameof(IProjectMetadata)} or a different launch configuration type."); 56? KnownLaunchConfigurationTypes.ProjectWithExternalBuild 57: KnownLaunchConfigurationTypes.Project;
Dcp\ExecutableLaunchPolicy.cs (2)
31!KnownLaunchConfigurationTypes.IsProject(supportedDeclaredAnnotation.LaunchConfigurationType) 84if (KnownLaunchConfigurationTypes.IsProject(launchConfigurationType))
Dcp\ResourceSnapshotBuilder.cs (3)
270launchConfigurationType == KnownLaunchConfigurationTypes.ProjectWithExternalBuild && 310if ((launchConfigurationType is null || KnownLaunchConfigurationTypes.IsProject(launchConfigurationType)) && 312KnownLaunchConfigurationTypes.IsProject(launchConfiguration.Type))
SupportsDebuggingAnnotation.cs (4)
31/// Gets the launch configuration type identifier, for example <see cref="KnownLaunchConfigurationTypes.Project"/>. 38/// launch configuration capability list, <see cref="KnownLaunchConfigurationTypes.Project"/> is treated as 41/// through a synthesized <see cref="KnownLaunchConfigurationTypes.Project"/> launch configuration, for example an 42/// Azure Functions project in an IDE that advertises <see cref="KnownLaunchConfigurationTypes.Project"/> but not
Aspire.Hosting.Dotnet (9)
DotnetProjectBuildCoordinator.cs (5)
416if (supportedLaunchConfigurations.Contains(KnownLaunchConfigurationTypes.ProjectWithExternalBuild)) 425return supportedLaunchConfigurations.Contains(KnownLaunchConfigurationTypes.Project) 678$"'{KnownLaunchConfigurationTypes.Project}' launch contract for the active IDE session and cannot " + 680$"'{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}', run the application outside this IDE, " + 1018annotation.LaunchConfigurationType == KnownLaunchConfigurationTypes.ProjectWithExternalBuild)
DotnetProjectHostingExtensions.cs (4)
49/// IDE launches require support for <see cref="KnownLaunchConfigurationTypes.ProjectWithExternalBuild"/> so the 103/// IDE launches require support for <see cref="KnownLaunchConfigurationTypes.ProjectWithExternalBuild"/> so the 152/// IDE launches require support for <see cref="KnownLaunchConfigurationTypes.ProjectWithExternalBuild"/> so the 401?? KnownLaunchConfigurationTypes.Project;
Aspire.Hosting.Dotnet.Tests (25)
DotnetProjectBuildCoordinatorTests.cs (20)
68KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 71KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 288KnownLaunchConfigurationTypes.Project, 342Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfiguration.Type); 363SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 377$"'{KnownLaunchConfigurationTypes.Project}' launch contract for the active IDE session and cannot reliably " + 379$"'{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}', run the application outside this IDE, or " + 395SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 406KnownLaunchConfigurationTypes.Project, 430SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 484SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.ProjectWithExternalBuild] 493KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 553KnownLaunchConfigurationTypes.Project, 567"supported_launch_configurations": ["{{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}}"] 579KnownLaunchConfigurationTypes.Project, 2782Assert.Equal(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, launchConfiguration.Type); 3928KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 4207annotation => annotation.LaunchConfigurationType == KnownLaunchConfigurationTypes.ProjectWithExternalBuild); 4231SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.ProjectWithExternalBuild] 4246annotation => annotation.LaunchConfigurationType == KnownLaunchConfigurationTypes.ProjectWithExternalBuild);
DotnetProjectResourceTests.cs (5)
649Assert.Equal(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, supportsDebugging.LaunchConfigurationType); 656Assert.Equal(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, launchConfig.Type); 792SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.ProjectWithExternalBuild] 818SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 872SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project]
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFBuildCustomizationWarningTests.cs (1)
36"supported_launch_configurations": ["{{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}}"]
Aspire.Hosting.Tests (51)
Dcp\DcpExecutorTests.cs (19)
7686Assert.Equal(KnownLaunchConfigurationTypes.Project, effectiveIdeLaunchAnnotation.LaunchConfigurationType); 7702Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfig.Type); 7726KnownLaunchConfigurationTypes.Project, 7766Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfig.Type); 7785Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfig.Type); 7807Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfig.Type); 7906SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 7952Assert.Equal(KnownLaunchConfigurationTypes.Project, effectiveIdeLaunchAnnotation.LaunchConfigurationType); 8319Assert.Equal(KnownLaunchConfigurationTypes.Project, projectLaunchConfiguration.GetProperty("type").GetString()); 8463KnownLaunchConfigurationTypes.Project, 9195KnownLaunchConfigurationTypes.Project); 9224Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfiguration.Type); 9241KnownLaunchConfigurationTypes.Project); 9250SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 9270Assert.Equal(KnownLaunchConfigurationTypes.Project, launchConfiguration.Type); 9291KnownLaunchConfigurationTypes.Project); 9518Assert.Equal(KnownLaunchConfigurationTypes.Project, projectLaunchConfiguration.GetProperty("type").GetString()), 9838.WithDebugSupport(mode => ProjectLaunchConfigurationFactory.Create(resource, mode), KnownLaunchConfigurationTypes.Project); 12940KnownLaunchConfigurationTypes.Project,
Dcp\ExecutableLaunchPlanTests.cs (8)
277KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 286SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.ProjectWithExternalBuild] 297$"Resource 'app' declares \"{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}\" debug launch support (WithDebugSupport) but has no project metadata. " + 298$"The \"{KnownLaunchConfigurationTypes.ProjectWithExternalBuild}\" launch configuration type is reserved for .NET project resources; use a resource that carries IProjectMetadata or a different launch configuration type.", 334owningLaunchConfigurationType: KnownLaunchConfigurationTypes.Project, 366owningLaunchConfigurationType: KnownLaunchConfigurationTypes.Project, 379SupportedLaunchConfigurations = [KnownLaunchConfigurationTypes.Project] 390Assert.Equal(KnownLaunchConfigurationTypes.Project, ideLaunchAnnotation.LaunchConfigurationType);
Dcp\ResourceSnapshotBuilderTests.cs (15)
116[InlineData(KnownLaunchConfigurationTypes.Project, null, true)] 117[InlineData(KnownLaunchConfigurationTypes.Project, "Release", true)] 118[InlineData(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, "Release", true)] 119[InlineData(KnownLaunchConfigurationTypes.Project, null, false)] 120[InlineData(KnownLaunchConfigurationTypes.Project, "Release", false)] 173[InlineData(KnownLaunchConfigurationTypes.Project)] 189dcpLaunchConfigurationType == KnownLaunchConfigurationTypes.Project 192Type = KnownLaunchConfigurationTypes.Project, 238KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 248Type = KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 292KnownLaunchConfigurationTypes.ProjectWithExternalBuild, 325[InlineData(KnownLaunchConfigurationTypes.Project, true, "/app", "/app/project.csproj")] 327[InlineData(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, false, "/app", "/app/project.csproj")] 328[InlineData(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, true, null, "/app/project.csproj")] 329[InlineData(KnownLaunchConfigurationTypes.ProjectWithExternalBuild, true, "/app", "/app/project.cs")]
DebugSupportExtensionsTests.cs (9)
144Assert.Equal(KnownLaunchConfigurationTypes.Project, debugSupport.LaunchConfigurationType); 161}, KnownLaunchConfigurationTypes.Project); 316KnownLaunchConfigurationTypes.Project); 368Assert.Equal(KnownLaunchConfigurationTypes.Project, annotation.LaunchConfigurationType); 401debugSessionInfo: CreateDebugSessionInfo([KnownLaunchConfigurationTypes.Project])); 404Assert.Equal(KnownLaunchConfigurationTypes.Project, annotation.LaunchConfigurationType); 441Assert.Equal(KnownLaunchConfigurationTypes.Project, effectiveAnnotation.LaunchConfigurationType); 462KnownLaunchConfigurationTypes.Project, 488debugSessionInfo: CreateDebugSessionInfo([KnownLaunchConfigurationTypes.Project]));