86 references to KnownLaunchConfigurationTypes
Aspire.Hosting (21)
ApplicationModel\DebugSupportExtensions.cs (2)
40
/// type is <see cref="
KnownLaunchConfigurationTypes
.Project"/> is treated as implicitly supported. File-based
67
return supportsDebuggingAnnotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.Project &&
ApplicationModel\ExecutableLaunchConfiguration.cs (2)
78
/// <param name="type">The launch configuration type identifier, for example <see cref="
KnownLaunchConfigurationTypes
.Project"/>.</param>
121
public sealed class ProjectLaunchConfiguration() : ExecutableLaunchConfiguration(
KnownLaunchConfigurationTypes
.Project)
ApplicationModel\ExecutableLaunchRecipe.cs (3)
380
if (
KnownLaunchConfigurationTypes
.IsProject(debugSupport.LaunchConfigurationType) &&
550
!
KnownLaunchConfigurationTypes
.IsProject(customDebugSupport.LaunchConfigurationType))
605
KnownLaunchConfigurationTypes
.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 (5)
39
!
KnownLaunchConfigurationTypes
.IsProject(debugSupport.LaunchConfigurationType)
62
GetLaunchMode(
KnownLaunchConfigurationTypes
.Project),
101
debugSupport?.LaunchConfigurationType is not null and not
KnownLaunchConfigurationTypes
.Project)
122
&& supportedLaunchConfigurations?.Contains(
KnownLaunchConfigurationTypes
.Project) is true;
127
if (
KnownLaunchConfigurationTypes
.IsProject(launchConfigurationType))
Dcp\ResourceSnapshotBuilder.cs (3)
270
launchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild &&
306
KnownLaunchConfigurationTypes
.IsProject(launchConfigurationType) &&
308
KnownLaunchConfigurationTypes
.IsProject(launchConfiguration.Type))
SupportsDebuggingAnnotation.cs (2)
31
/// Gets the launch configuration type identifier, for example <see cref="
KnownLaunchConfigurationTypes
.Project"/>.
38
/// (for example Visual Studio, which does not send one), <see cref="
KnownLaunchConfigurationTypes
.Project"/>
Aspire.Hosting.Dotnet (9)
DotnetProjectBuildCoordinator.cs (5)
416
if (supportedLaunchConfigurations.Contains(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild))
425
return 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, " +
1018
annotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild)
DotnetProjectHostingExtensions.cs (4)
48
/// IDE launches require support for <see cref="
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild"/> so the
102
/// IDE launches require support for <see cref="
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild"/> so the
151
/// IDE launches require support for <see cref="
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild"/> so the
400
??
KnownLaunchConfigurationTypes
.Project;
Aspire.Hosting.Dotnet.Tests (25)
DotnetProjectBuildCoordinatorTests.cs (20)
64
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
67
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
280
KnownLaunchConfigurationTypes
.Project,
334
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
355
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
369
$"'{
KnownLaunchConfigurationTypes
.Project}' launch contract for the active IDE session and cannot reliably " +
371
$"'{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}', run the application outside this IDE, or " +
387
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
398
KnownLaunchConfigurationTypes
.Project,
422
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
476
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
485
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
545
KnownLaunchConfigurationTypes
.Project,
559
"supported_launch_configurations": ["{{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}}"]
571
KnownLaunchConfigurationTypes
.Project,
2673
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, launchConfiguration.Type);
3819
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
4027
annotation => annotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild);
4051
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
4066
annotation => annotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild);
DotnetProjectResourceTests.cs (5)
650
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, supportsDebugging.LaunchConfigurationType);
657
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, launchConfig.Type);
793
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
819
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
873
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFBuildCustomizationWarningTests.cs (1)
36
"supported_launch_configurations": ["{{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}}"]
Aspire.Hosting.Tests (30)
Dcp\DcpExecutorTests.cs (9)
7912
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, projectLaunchConfiguration.GetProperty("type").GetString());
8056
KnownLaunchConfigurationTypes
.Project,
8747
KnownLaunchConfigurationTypes
.Project);
8776
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
8793
KnownLaunchConfigurationTypes
.Project);
8802
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
8822
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
8843
KnownLaunchConfigurationTypes
.Project);
9311
.WithDebugSupport(mode => ProjectLaunchConfigurationFactory.Create(resource, mode),
KnownLaunchConfigurationTypes
.Project);
Dcp\ExecutableLaunchPlanTests.cs (5)
103
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
112
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
123
$"Resource 'app' declares \"{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}\" debug launch support (WithDebugSupport) but has no project metadata. " +
124
$"The \"{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}\" launch configuration type is reserved for .NET project resources; use a resource that carries IProjectMetadata or a different launch configuration type.",
160
owningLaunchConfigurationType:
KnownLaunchConfigurationTypes
.Project,
Dcp\ResourceSnapshotBuilderTests.cs (10)
116
[InlineData(
KnownLaunchConfigurationTypes
.Project, null)]
117
[InlineData(
KnownLaunchConfigurationTypes
.Project, "Release")]
118
[InlineData(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, "Release")]
175
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
185
Type =
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
229
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
262
[InlineData(
KnownLaunchConfigurationTypes
.Project, true, "/app", "/app/project.csproj")]
264
[InlineData(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, false, "/app", "/app/project.csproj")]
265
[InlineData(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, true, null, "/app/project.csproj")]
266
[InlineData(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, true, "/app", "/app/project.cs")]
DebugSupportExtensionsTests.cs (6)
145
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, debugSupport.LaunchConfigurationType);
162
},
KnownLaunchConfigurationTypes
.Project);
317
KnownLaunchConfigurationTypes
.Project);
369
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, annotation.LaunchConfigurationType);
402
debugSessionInfo: CreateDebugSessionInfo([
KnownLaunchConfigurationTypes
.Project]));
405
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, annotation.LaunchConfigurationType);