محمد صادق حاتمی

محمد صادق حاتمی

دست نوشته های یک دکتر مهندس
محمد صادق حاتمی

محمد صادق حاتمی

دست نوشته های یک دکتر مهندس

Visual Studio freezing (crashing) while loading solution

Visual Studio freezing (crashing) while loading solution

[my Experience]

The solution is to Disable Windows Security Antivirus (Windows Defender)


1. Open PowerShell as Administrator;


2. Copy the commands below and run in PowerShell:

Set-MpPreference -DisableRealtimeMonitoring $true -Force

New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'DisableAntiSpyware' -Value 1 -PropertyType DWord -Force

New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'DisableAntiVirus' -Value 1 -PropertyType DWord -Force

New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'ServiceKeepAlive' -Value 0 -PropertyType DWord -Force

3. Paste into the Powershell terminal and press the {Enter} key

After running the above commands, restart the computer but do not run the troubleshoot to avoid reactivation.