Skip to content

Commit

Permalink
Merge pull request #9 from nebula2/8-dotnet-watch-completion
Browse files Browse the repository at this point in the history
fix(): dotnet watch appears to stuck on building
  • Loading branch information
enisn authored Feb 18, 2024
2 parents 9533188 + f6e84ab commit 86a4a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.)_.
Expand Down
9 changes: 9 additions & 0 deletions src/AbpDevTools/Commands/RunningProjectItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 86a4a0f

Please sign in to comment.