I've got a problem with visual studio for several days and I have tried many many things to fix it but no success. I had visual studio 2017 professional, It's freezing while building, cleaning , scanning. I found a lot of possible solution in google which none of them worked for me. Then I uninstalled the visual studio and installed the community version one. Again the same problem. The only thing that I found in both versions it was after repairing the visual studio and restarting the system for a while it works properly but after several build again the same problem take place, even for very simple code like writing hello world. I almost should wait 30 second to 1 minute to build a solution and I am going crazy. I appreciate any suggestion.
( in the safe mode it works fine)
why not move on up to the latest version? Or did you, with the community version?
If you can, that may fix it.
the only recurring issue I have is the darn PDB file failures.
for that I wrote a batch file that lets me get past it:
Taskkill /IM mspdbsrv.exe /F
but your issue does not sound like that -- I get a 'unknown error in pdb file' in the output and then it locks the file so you can't delete it. The above unlocks it and deletes it, allowing a slow rebuild but it works.
once in a while the linker locks on me too, and similar task kill on the linker fixes it.
Basically VS is heavily threaded and has a ton of sub-processes when building etc. You have to figure out what process froze and axe it, then it usually recovers and restarts the offending process (hopefully without issues) for you.
how big is your project?? A large program can take many min to compile and that is fine. A faster machine with SSD and ram helps -- I have 20 cores, 64GB, SSD, and even then the program I work on takes 5 min or so from scratch release build. If its taking more than a second or two to make hello world, that is another story.