87 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)
98
/// Gets or sets the launch mode, one of the values on <see cref="
ExecutableLaunchMode
"/>.
101
/// Defaults to <see cref="
ExecutableLaunchMode
.Debug"/> when a debugger is attached to the app host
102
/// and <see cref="
ExecutableLaunchMode
.NoDebug"/> otherwise. The mode requested by the IDE for the
107
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)
24
ExecutableLaunchMode
.NoDebug,
77
ExecutableLaunchMode
.NoDebug,
132
return _configuration[KnownConfigNames.DebugSessionRunMode] ??
ExecutableLaunchMode
.NoDebug;
137
?? (Debugger.IsAttached ?
ExecutableLaunchMode
.Debug :
ExecutableLaunchMode
.NoDebug);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
607
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 (9)
DotnetProjectBuildCoordinatorTests.cs (5)
1458
ExecutableLaunchMode
.Debug,
1659
ExecutableLaunchMode
.Debug,
1721
ExecutableLaunchMode
.Debug,
2036
ExecutableLaunchMode
.Debug,
2152
ExecutableLaunchMode
.Debug,
DotnetProjectOptionsTests.cs (1)
34
var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource,
ExecutableLaunchMode
.Debug);
DotnetProjectResourceTests.cs (3)
647
ExecutableLaunchMode
.Debug);
651
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
686
ExecutableLaunchMode
.Debug);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
519
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)
1430
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)
5001
[InlineData("Debug",
ExecutableLaunchMode
.Debug)]
5002
[InlineData("NoDebug",
ExecutableLaunchMode
.NoDebug)]
5048
Mode =
ExecutableLaunchMode
.NoDebug,
5061
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
5073
Assert.Equal(
ExecutableLaunchMode
.NoDebug, plc.Mode);
5317
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
5343
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
5359
Assert.Equal(
ExecutableLaunchMode
.Debug, launchContext.Mode);
5419
Assert.Equal(
ExecutableLaunchMode
.Debug, config1.Mode);
7115
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
7178
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
7186
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
7228
Assert.Equal(
ExecutableLaunchMode
.Debug, projectLaunchConfiguration.GetProperty("mode").GetString());
7235
Assert.Equal(
ExecutableLaunchMode
.Debug, mauiLaunchConfiguration.GetProperty("mode").GetString());
7242
Assert.Equal(
ExecutableLaunchMode
.Debug, launchContext.Mode);
7313
builder.Configuration[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug;
7321
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
8165
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
8181
Assert.Equal(
ExecutableLaunchMode
.Debug, plc.Mode);
8206
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
8222
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfig.Mode);
8650
Assert.Equal(
ExecutableLaunchMode
.NoDebug, plc.Mode);
9560
[InlineData(
ExecutableLaunchMode
.Debug,
ExecutableLaunchMode
.Debug)]
9561
[InlineData(
ExecutableLaunchMode
.NoDebug,
ExecutableLaunchMode
.NoDebug)]
11009
Assert.Equal(
ExecutableLaunchMode
.Debug, config.Mode);
Dcp\ExecutableLaunchPlanTests.cs (3)
190
[KnownConfigNames.DebugSessionRunMode] =
ExecutableLaunchMode
.Debug
198
Assert.Equal(
ExecutableLaunchMode
.NoDebug, decision.LaunchMode);
199
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);
125
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource,
ExecutableLaunchMode
.Debug));
156
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource,
ExecutableLaunchMode
.NoDebug));
158
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
170
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.NoDebug));
173
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
190
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
192
Assert.Equal(
ExecutableLaunchMode
.Debug, launchConfiguration.Mode);
210
await CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug, cts.Token);
234
await executable.Resource.CreateLaunchConfigurationAsync(
ExecutableLaunchMode
.NoDebug, cts.Token));
237
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
239
Assert.Equal(
ExecutableLaunchMode
.NoDebug, actualContext.Mode);
275
ExecutableLaunchMode
.NoDebug,
284
Assert.Equal(
ExecutableLaunchMode
.NoDebug, launchConfiguration.Mode);
295
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
311
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
323
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource,
ExecutableLaunchMode
.Debug));
503
string mode =
ExecutableLaunchMode
.Debug,
ExecutableResourceBuilderExtensionTests.cs (1)
120
ExecutableLaunchMode
.NoDebug)));
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode =
ExecutableLaunchMode
.Debug,