Command "dotnet run" too slow

Asked

Viewed 222 times

0

When I execute the command dotnet run via the command line in my ASP.NET Core project I have to wait 8 to 10 seconds until I can access the browser to test any changes. I downloaded Visual Studio 2017, I can run the application smoothly if start without debug (CTRL + F5), takes around 3 or 4 seconds. When starting with debug (F5), I have similar times to running via command line. Why is dotnet run so slow? Is there an equivalent to start it without debugging VS to the command line?

1 answer

0

It was supposed to be just the opposite. Via . NET CLI be faster. Do a test with dotnet run nomedoprojeto and then with dotnet nomedoprojeto.dll. Running directly on dll the difference is remarkable.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.