You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Aspire.Hosting.Docker/DockerComposeEnvironmentResource.cs
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
+
#pragma warning disable ASPIRECOMPUTE001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Copy file name to clipboardExpand all lines: src/Aspire.Hosting.Docker/DockerComposePublishingContext.cs
+9-1
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ private async Task WriteDockerComposeOutputAsync(DistributedApplicationModel mod
68
68
if(environment==null)
69
69
{
70
70
// No Docker Compose environment found
71
-
return;
71
+
thrownewInvalidOperationException($"No Docker Compose environment found. Ensure a Docker Compose environment is registered by calling {nameof(DockerComposeEnvironmentExtensions.AddDockerComposeEnvironment)}.");
72
72
}
73
73
74
74
vardefaultNetwork=newNetwork
@@ -99,6 +99,14 @@ private async Task WriteDockerComposeOutputAsync(DistributedApplicationModel mod
Copy file name to clipboardExpand all lines: src/Aspire.Hosting.Docker/DockerComposeServiceExtensions.cs
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
+
#pragma warning disable ASPIRECOMPUTE001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Assert.Contains("No Docker Compose environment found. Ensure a Docker Compose environment is registered by calling AddDockerComposeEnvironment.",exception.Message,StringComparison.OrdinalIgnoreCase);
0 commit comments