dotnet run slow performance.
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
This may be more closely related to dotnet/cli#6241, an issue with
dotnet run
specifically rather than build times ordotnet exec
.(Edit: Oops, transposed digits.)