locked
VS2019 - It takes 8 ~ 12 mins to "Build Solution (F6)" after the Windows Update on 2020-08-10 RRS feed

  • Question

  • Today, after a Windows Update & Visual Studio Update, everything looks normal except for the "Build Solution (F6)" takes extremely long time.

    After editing couple lines of coding (WinForm C#) and press F6 again, it takes another 8 to 12 mins to have the built completed.  It used to take about 1 to 3 seconds.

    Anything I can do?  Please help

    ------------------------------------------

    OS: WIN 10 Pro
    Version: 10.0.19041 Build 19041

    Visual Studio 2019 Community 
    Version: 16.7.0
    • Edited by iHandler Monday, August 10, 2020 11:26 AM add info
    Monday, August 10, 2020 8:49 AM

Answers

  • Hi iHandler,

    You could try to delete temporary files of windows and visual studio, please follow these steps:

    1. Close visual studio and related processes
    2. Go to the directory 'C:\Users\[UserName]\AppData\Local\Temp' and 'C:\Users\[UserName]\AppData\Local\Microsoft\VisualStudio\16.0_XXXXX\ComponentModelCache'
    3. Delete all contents
    4. Start visual studio and re-build your project

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by iHandler Friday, August 14, 2020 3:53 AM
    Tuesday, August 11, 2020 3:05 AM
  • Thanks again, I finally found out the way to fix this issue (the version on 16.7.0 might have some problems)

    VS 2019 
    > Project 
    > MyProject Properties 
    > Build

    Look for the field of "Platform: ....."

    and Add "Active (Any CPU)", instead of "x86".  

    The time to build solution only takes only 1 ~ 2 seconds to finish.

    Dylan, thanks for your help, highly appreciate for your quick response 
    and thoughtful suggestion !


    • Marked as answer by iHandler Thursday, August 13, 2020 10:55 AM
    Thursday, August 13, 2020 10:55 AM

All replies

  • Hi iHandler,

    You could try to delete temporary files of windows and visual studio, please follow these steps:

    1. Close visual studio and related processes
    2. Go to the directory 'C:\Users\[UserName]\AppData\Local\Temp' and 'C:\Users\[UserName]\AppData\Local\Microsoft\VisualStudio\16.0_XXXXX\ComponentModelCache'
    3. Delete all contents
    4. Start visual studio and re-build your project

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by iHandler Friday, August 14, 2020 3:53 AM
    Tuesday, August 11, 2020 3:05 AM
  • Thanks Dylan,

    I did follow the steps you suggested, but no luck.

    It still takes about 8 to 12 mins to build.  Right after the update (VS 2019 version 16.7.0) was completed, the problem showed up.

    It looks like there is a problem on VS 2019 16.7.0.  I also used another Win10 Pro (a clean machine) to test it around, it was the same result 8~ 12 mins. 

    Anything I can do? Thanks

    Tuesday, August 11, 2020 3:30 AM
  • Hi iHandler,

    The 16.7.1 has been released, maybe you could update VS, and then check if the issue persists.

    In addition, you could try to disable 'Automatically adjust visual experience based on client performance' in Tools/Options/Environment/General.

    By the way, could you please share some details about your project, which will help to reproduce this issue on our side.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, August 12, 2020 5:47 AM
  • Thanks again, I finally found out the way to fix this issue (the version on 16.7.0 might have some problems)

    VS 2019 
    > Project 
    > MyProject Properties 
    > Build

    Look for the field of "Platform: ....."

    and Add "Active (Any CPU)", instead of "x86".  

    The time to build solution only takes only 1 ~ 2 seconds to finish.

    Dylan, thanks for your help, highly appreciate for your quick response 
    and thoughtful suggestion !


    • Marked as answer by iHandler Thursday, August 13, 2020 10:55 AM
    Thursday, August 13, 2020 10:55 AM
  • I have done all the suggestions in this thread, but still having the same issue:
    8/14/2020 1:02:06 PM - MyProject - Debug|Any CPU:  Build started.
    8/14/2020 1:15:32 PM - MyProject - Debug|Any CPU:  Build completed.

    Any other solution for this?

    Used to be about 40 secs and now 13 mins

    Friday, August 14, 2020 7:59 PM
  • I have done all the suggestions in this thread, but still having the same issue:
    8/14/2020 1:02:06 PM - MyProject - Debug|Any CPU:  Build started.
    8/14/2020 1:15:32 PM - MyProject - Debug|Any CPU:  Build completed.

    Any other solution for this?

    Used to be about 40 secs and now 13 mins

    I understand how frustrated it is (I spent about 18 hours non-stop to repair it), and I hope I can help.

    Please give me some background so I'll try to check this for you.

    Version of Visual Studio, Windows, your App (WinForm or WPF)?
    32bit or 64 bit?
    Saturday, August 15, 2020 4:54 AM