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
171
KnownLaunchConfigurationTypes
.Project,
319
return declaredAnnotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.Project &&
332
supportedLaunchConfigurations?.Contains(
KnownLaunchConfigurationTypes
.Project) is true;
355
declaredAnnotation?.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>
121
public sealed class ProjectLaunchConfiguration() : ExecutableLaunchConfiguration(
KnownLaunchConfigurationTypes
.Project)
ApplicationModel\ExecutableLaunchRecipe.cs (3)
391
if (
KnownLaunchConfigurationTypes
.IsProject(debugSupport.LaunchConfigurationType) &&
562
!
KnownLaunchConfigurationTypes
.IsProject(customDebugSupport.LaunchConfigurationType))
617
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 (2)
31
!
KnownLaunchConfigurationTypes
.IsProject(supportedDeclaredAnnotation.LaunchConfigurationType)
84
if (
KnownLaunchConfigurationTypes
.IsProject(launchConfigurationType))
Dcp\ResourceSnapshotBuilder.cs (3)
270
launchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild &&
310
if ((launchConfigurationType is null ||
KnownLaunchConfigurationTypes
.IsProject(launchConfigurationType)) &&
312
KnownLaunchConfigurationTypes
.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)
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)
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)
68
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
71
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
288
KnownLaunchConfigurationTypes
.Project,
342
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
363
SupportedLaunchConfigurations = [
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 " +
395
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
406
KnownLaunchConfigurationTypes
.Project,
430
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
484
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
493
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
553
KnownLaunchConfigurationTypes
.Project,
567
"supported_launch_configurations": ["{{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}}"]
579
KnownLaunchConfigurationTypes
.Project,
2782
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, launchConfiguration.Type);
3928
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
4207
annotation => annotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild);
4231
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
4246
annotation => annotation.LaunchConfigurationType ==
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild);
DotnetProjectResourceTests.cs (5)
649
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, supportsDebugging.LaunchConfigurationType);
656
Assert.Equal(
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild, launchConfig.Type);
792
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild]
818
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
872
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFBuildCustomizationWarningTests.cs (1)
36
"supported_launch_configurations": ["{{
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild}}"]
Aspire.Hosting.Tests (51)
Dcp\DcpExecutorTests.cs (19)
7686
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, effectiveIdeLaunchAnnotation.LaunchConfigurationType);
7702
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfig.Type);
7726
KnownLaunchConfigurationTypes
.Project,
7766
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfig.Type);
7785
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfig.Type);
7807
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfig.Type);
7906
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
7952
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, effectiveIdeLaunchAnnotation.LaunchConfigurationType);
8319
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, projectLaunchConfiguration.GetProperty("type").GetString());
8463
KnownLaunchConfigurationTypes
.Project,
9195
KnownLaunchConfigurationTypes
.Project);
9224
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
9241
KnownLaunchConfigurationTypes
.Project);
9250
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
9270
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, launchConfiguration.Type);
9291
KnownLaunchConfigurationTypes
.Project);
9518
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, projectLaunchConfiguration.GetProperty("type").GetString()),
9838
.WithDebugSupport(mode => ProjectLaunchConfigurationFactory.Create(resource, mode),
KnownLaunchConfigurationTypes
.Project);
12940
KnownLaunchConfigurationTypes
.Project,
Dcp\ExecutableLaunchPlanTests.cs (8)
277
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
286
SupportedLaunchConfigurations = [
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.",
334
owningLaunchConfigurationType:
KnownLaunchConfigurationTypes
.Project,
366
owningLaunchConfigurationType:
KnownLaunchConfigurationTypes
.Project,
379
SupportedLaunchConfigurations = [
KnownLaunchConfigurationTypes
.Project]
390
Assert.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)]
189
dcpLaunchConfigurationType ==
KnownLaunchConfigurationTypes
.Project
192
Type =
KnownLaunchConfigurationTypes
.Project,
238
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
248
Type =
KnownLaunchConfigurationTypes
.ProjectWithExternalBuild,
292
KnownLaunchConfigurationTypes
.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)
144
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, debugSupport.LaunchConfigurationType);
161
},
KnownLaunchConfigurationTypes
.Project);
316
KnownLaunchConfigurationTypes
.Project);
368
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, annotation.LaunchConfigurationType);
401
debugSessionInfo: CreateDebugSessionInfo([
KnownLaunchConfigurationTypes
.Project]));
404
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, annotation.LaunchConfigurationType);
441
Assert.Equal(
KnownLaunchConfigurationTypes
.Project, effectiveAnnotation.LaunchConfigurationType);
462
KnownLaunchConfigurationTypes
.Project,
488
debugSessionInfo: CreateDebugSessionInfo([
KnownLaunchConfigurationTypes
.Project]));