diff --git a/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs b/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs index e4ba53dc4d..f93b395d6c 100644 --- a/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs +++ b/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs @@ -503,7 +503,7 @@ private void PrepareProjectExecutables() else { exeSpec.ExecutionType = ExecutionType.Process; - if (environmentVariables.GetBool("DOTNET_WATCH") is true) + if (environmentVariables.GetBool("DOTNET_WATCH") is not true) { exeSpec.Args = [ "run",