question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide more immediate feedback when an ASP.NET Core app is running

See original GitHub issue

When you create a new ASP.NET Core app in the command line and run it with dotnet run, it can take a few seconds before any feedback is provided to the user (sometimes much longer if it’s the first run). In user studies, we saw first-time .NET users get confused about whether the app is running when there initially isn’t any output. Consider providing more immediate feedback that the app is building and running. Also, consider improving the app startup performance.

Repro steps:

  1. dotnet new webapp -o WebApp1
  2. cd WebApp1
  3. dotnet run

Expected: Near immediate feedback that the app is building and running

Actual: It takes anywhere between 3-30 seconds before any output is displayed.

U9uyxcCa2W

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

10reactions
RehanSaeedcommented, Nov 19, 2020

Is there any documentation around what the new dotnetRunMessages setting actually does?

I’m trying to understand whether I need to enable it when I configure other launch settings in launchSettings.json like dotnet watch, WSL2, Docker etc.

0reactions
lonix1commented, Aug 22, 2022

There is an explanation for dotnetRunMessages on StackOverflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core, On request immediately return 200, then ...
No method can do anything after it returns. But there are a variety of things you can do to asynchronously execute operations in...
Read more >
Troubleshoot ASP.NET Core on Azure App Service and IIS
This article provides information on common app startup errors and instructions on how to diagnose errors when an app is deployed to Azure ......
Read more >
10 Performance-Improvement Tips for ASP.NET Core 3.0 ...
This article provide 10 most important tips and tricks to be followed in the development, to improve the performance of ASP.NET Core 3.0 ......
Read more >
async/await returning immediate response in ASP.NET ...
In ASP.NET Core, when a request comes in and trigger a long-running task, i.e., calling an external API and wait for response, I...
Read more >
Instant Feedback Is Here: Introducing Hot Reload in .NET 6
ASP.NET Core welcomes hot reloading, giving you the capability to see your changes instantaneously.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found