81 references to ExecutableLaunchMode
Aspire.Hosting (12)
ApplicationModel\DebugSupportExtensions.cs (1)
102
/// <param name="mode">The launch mode, one of the values on <see cref="
ExecutableLaunchMode
"/>.</param>
ApplicationModel\ExecutableLaunchConfiguration.cs (5)
86
/// Gets or sets the launch mode, one of the values on <see cref="
ExecutableLaunchMode
"/>.
89
/// Defaults to <see cref="
ExecutableLaunchMode
.Debug"/> when a debugger is attached to the app host
90
/// and <see cref="
ExecutableLaunchMode
.NoDebug"/> otherwise. The mode requested by the IDE for the
95
public string Mode { get; set; } = System.Diagnostics.Debugger.IsAttached ?
ExecutableLaunchMode
.Debug :
ExecutableLaunchMode
.NoDebug;
ApplicationModel\LaunchConfigurationCallbackContext.cs (1)
36
/// Gets the requested launch mode, one of the values on <see cref="
ExecutableLaunchMode
"/>.
Dcp\ExecutableLaunchPolicy.cs (5)
23
ExecutableLaunchMode
.NoDebug,
75
ExecutableLaunchMode
.NoDebug,
112
return _configuration[KnownConfigNames.DebugSessionRunMode] ??
ExecutableLaunchMode
.NoDebug;
117
?? (Debugger.IsAttached ?
ExecutableLaunchMode
.Debug :
ExecutableLaunchMode
.NoDebug);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
532
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(
ExecutableLaunchMode
.Debug);
WithBlazorAppTests.cs (2)
353
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfiguration.Mode);
489
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(
ExecutableLaunchMode
.Debug);
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectResourceTests.cs (3)
548
ExecutableLaunchMode
.Debug);
552
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
583
ExecutableLaunchMode
.Debug);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
520
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
1360
ExecutableLaunchMode
.Debug,
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
895
ExecutableLaunchMode
.Debug);
Aspire.Hosting.Rust.Tests (6)
RustPublicApiTests.cs (6)
370
ExecutableLaunchMode
.Debug,
377
ExecutableLaunchMode
.Debug,
441
ExecutableLaunchMode
.Debug,
445
ExecutableLaunchMode
.Debug,
480
ExecutableLaunchMode
.Debug,
484
ExecutableLaunchMode
.Debug,
Aspire.Hosting.Tests (53)
Dcp\DcpExecutorTests.cs (27)
4199
[InlineData("Debug",
ExecutableLaunchMode
.Debug)]
4200
[InlineData("NoDebug",
ExecutableLaunchMode
.NoDebug)]
4246
Mode =
ExecutableLaunchMode
.NoDebug,
4259
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
4271
Assert.Equal(
ExecutableLaunchMode
.NoDebug, plc.Mode);
4515
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
4541
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
4557
Assert.Equal(
ExecutableLaunchMode
.Debug, launchContext.Mode);
4617
Assert.Equal(
ExecutableLaunchMode
.Debug, config1.Mode);
6313
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
6376
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
6384
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
6426
Assert.Equal(
ExecutableLaunchMode
.Debug, projectLaunchConfiguration.GetProperty("mode").GetString());
6433
Assert.Equal(
ExecutableLaunchMode
.Debug, mauiLaunchConfiguration.GetProperty("mode").GetString());
6440
Assert.Equal(
ExecutableLaunchMode
.Debug, launchContext.Mode);
6511
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
6519
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
7305
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
7321
Assert.Equal(
ExecutableLaunchMode
.Debug, plc.Mode);
7346
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
7362
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
7790
Assert.Equal(
ExecutableLaunchMode
.NoDebug, plc.Mode);
8700
[InlineData(
ExecutableLaunchMode
.Debug,
ExecutableLaunchMode
.Debug)]
8701
[InlineData(
ExecutableLaunchMode
.NoDebug,
ExecutableLaunchMode
.NoDebug)]
9643
Assert.Equal(
ExecutableLaunchMode
.Debug, config.Mode);
Dcp\ExecutableLaunchPlanTests.cs (3)
159
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
167
Assert.Equal(
ExecutableLaunchMode
.NoDebug, decision.LaunchMode);
168
Assert.Equal(
ExecutableLaunchMode
.Debug, decision.ProjectLaunchMode);
DebugSupportExtensionsTests.cs (22)
88
await executable.Resource.CreateLaunchConfigurationAsync(
ExecutableLaunchMode
.NoDebug, cts.Token));
92
Assert.Equal(
ExecutableLaunchMode
.NoDebug, observedContext.Mode);
95
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
104
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource,
ExecutableLaunchMode
.Debug));
106
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfiguration.Mode);
121
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource,
ExecutableLaunchMode
.Debug));
152
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource,
ExecutableLaunchMode
.NoDebug));
154
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
166
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.NoDebug));
169
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
186
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
188
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfiguration.Mode);
206
await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug, cts.Token);
230
await executable.Resource.CreateLaunchConfigurationAsync(
ExecutableLaunchMode
.NoDebug, cts.Token));
233
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
235
Assert.Equal(
ExecutableLaunchMode
.NoDebug, actualContext.Mode);
271
ExecutableLaunchMode
.NoDebug,
280
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
291
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
307
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
319
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
463
string mode =
ExecutableLaunchMode
.Debug,
ExecutableResourceBuilderExtensionTests.cs (1)
105
ExecutableLaunchMode
.NoDebug)));
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode =
ExecutableLaunchMode
.Debug,