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.

dotnet run slow performance.

See original GitHub issue

I created a simple ASP.NET Core Web Api CRUD application with Visual Studio 2017. When i run it with VS via Debug > Start Without Debugging it takes 3-5 seconds. But if i run the same project with dotnet run via command line it takes 6-12 seconds to start.

My dotnet --info:

.NET Command Line Tools (1.0.0)

Product Information:
 Version:            1.0.0
 Commit SHA-1 hash:  e53429feb4

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cevariefcommented, Apr 26, 2017

Previously using dotnet 1.0.0-preview2-1-003177, it runs 2-3 seconds. After upgrading to 1.0.3 it takes 5-6 second until console show application listening http://localhost:5000.

0reactions
dmbarbourcommented, Jun 29, 2017

This may be more closely related to dotnet/cli#6241, an issue with dotnet run specifically rather than build times or dotnet exec.

(Edit: Oops, transposed digits.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet run of hello world takes way too long · Issue #8697
dotnet run is slow, about 3 seconds on my machine. It's consistently this slow, even when it doesn't need to rebuild. It appears...
Read more >
How can dotnet core 5 be so slow on simplest console app?
Solution: Turn off the laptop, remove the battery, wait for some time. Share. Share a link to this answer.
Read more >
command dotnet "myApp.dll" long loading time/slow start ...
First it loads fairly quick but after 8-10 sec it halts for +40 sec and then continues as normal. Total loadingtime is +60...
Read more >
.NET 6 compilation speed on macOS Monterey - am I ...
I have built a blank console app with dotnet new console , but I am kind of shocked by how slow the compile...
Read more >
Speeding up some very slow .NET builds - Yaakov's Blog
When you suspect a component is causing performance problems, run benchmarks and analysis to prove it. Had I gone digging into our custom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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