diff --git a/README.md b/README.md index 2c552e6..59fdc34 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ Convention: `*.csproj` files with specific names are considered as applications ```bash abpdev run -w ``` + > Please note that we cannot print URL's because dotnet does give any output. ## Virtual Environments Virtual environments are used to run multiple solutions with different configurations. For example, you can run different solutions with different environments _(connectionstrings etc.)_. diff --git a/src/AbpDevTools/Commands/RunningProjectItem.cs b/src/AbpDevTools/Commands/RunningProjectItem.cs index 4db5abd..18087c1 100644 --- a/src/AbpDevTools/Commands/RunningProjectItem.cs +++ b/src/AbpDevTools/Commands/RunningProjectItem.cs @@ -49,6 +49,15 @@ protected virtual void OutputReceived(object sender, DataReceivedEventArgs args) IsCompleted = true; } + if (args.Data != null && + args.Data.Contains("dotnet watch ") && + args.Data.Contains(" Started")) + { + Status = args.Data; + Process?.CancelOutputRead(); + IsCompleted = true; + } + if (DateTime.Now - Process?.StartTime > TimeSpan.FromMinutes(5)) { Status = "Stale";