What is the normal asp.net core 5 project build time or approxiamation

user 5879 1 Reputation point
2021-07-14T08:36:35.827+00:00

My asp.net core 5 project is taking too long to build around 35 seconds. I don't think these times are normal and I want to know some approximate times I could expect. I have only one project in my solution and I am using a windows PC with a core i5 processor, 4GB ram and an ssd. I searched the web and I could not find any suggested build times for asp.net core projects. I am using visual studio code and CLI to build and run my project

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,141 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zhi Lv - MSFT 32,006 Reputation points Microsoft Vendor
    2021-07-23T09:08:53.663+00:00

    Hi @user 5879 ,

    There doesn't have the normal or approximation build time, the build time depends on the project size, dependencies, installed packages, the OS environment, VS Code version, the VS Code performance and so on.

    To reducre the builde time, you could base on the depends, and try to use the following tips:

    1. As mentioned in your comment, you could use the dotnet run --no-restore command to disable implicit restore and reduce the build time.
    2. Take a look at Visual Studio Coe Performance Issues for more suggestions on how to improve performance, such as disable the installed extensions.
    3. Try to use WebPack to bundle the files.

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Dillion

    0 comments No comments