How Antivirus Software Affects Rider's Performance (on Windows)

Problem description

Some antivirus software can interfere with the development cycle pipeline. When you start programs or build your project in Rider or via the command-line tool, many files are created on your computer. If your antivirus software has real-time scanning enabled, this can force the application processes to halt each time a file is created while the antivirus scans that file. This is a widespread problem affecting many Windows users:

You might be tempted to disable your antivirus altogether, but this is not recommended. To ensure your computer is safe from malicious software, you should not completely disable real-time scanning or your antivirus software. The approved way is to configure an antivirus exception list. It’s true that setting up this list manually can take a while. Luckily, if you use the default Windows security software, Windows Defender, Rider can automatically analyze your system and identify what should be added to its exception list.

Let Rider automatically configure the Windows Defender exception list

As the pre-installed Windows security software, Windows Defender is enabled by default on each Windows machine. Because Windows Defender is the most commonly used antivirus software, we’ve programmed Rider to be able to configure its exception list automatically.

Rider automatically checks whether you have real-time scanning enabled and whether the scanning is configured to process directories where Rider writes a lot of files. So, when you open your solution in Rider, you will see a notification in the bottom right-hand corner of the editor.


Starting with v2019.2, Rider lets you exclude these directories from scanning automatically. To exclude the detected folders from being scanned by the antivirus, click "Fix...", then in the popup click the "Configure Automatically" button.


Configure Windows Defender manually

If you prefer to perform the configuration manually, follow these steps:

  • Click the Windows Start button.
  • Enter “Windows Security”.
  • Click “Virus and threat protection”.
  • Click “Manage settings” under “Virus & threat protection settings”.
  • Scroll down if needed, and then click “Add or remove exclusions”.
  • For every folder shown in the notification and listed in "Folders and processes for an antivirus exception list," click the + button, select “Folder” from the menu, and select the folder.

Other antiviruses

If you’re using a different antivirus product, you may still be affected by the problem, but there is no possibility to detect or correct this automatically. If you’re experiencing poor performance, please follow the instructions of your antivirus product to exclude the directories and files listed in "Folders and Processes for an antivirus exception list" from real-time scanning.

Folders and processes for an antivirus exception list

Note: the path C:\Users\Username\ can be changed to the Windows environment variable %USERPROFILE%.


  • C:\Users\Username\.Rider2019.2\system for Rider older than 2019.3 and %LOCALAPPDATA%\JetBrains\Rider2020.1 for Rider starting from 2020.1
  • Path to a solution folder (ex. C:\Users\Username\RiderProjects\WebApplication)


  • msbuild.exe
  • All .exe and .dll files in the following folders and their subfolders in the Rider installation directory (go to Help | Browse special files and folders and double-click Installation home directory)
    • bin\ 
    • lib\ReSharperHost
    • tools\


In case you are working on a Unity project, we recommend excluding a build folder from real-time scanning.

Comment actions Permalink


Thanks very much for the helpful article and automatic behaviour of detecting Windows Defender scanning, really appreciate the focus on not just Rider but the other parts of the system that create a better overall experience.

We're seeing warnings for %USERPROFILE%/.nuget. I see it's mentioned in your screenshots but not in the

Folders and processes for an antivirus exception list

section. Please could you confirm whether we should be excluding .nuget from Windows Defender and also whether you had any comments on the security tradeoffs in doing that, would you consider it to be unproblematic or would you say that comes with security risks.

Best wishes,


Comment actions Permalink

Hi Calum,

These are very good questions. To be honest, we need to investigate them before giving a proper answer. 
We've initiated an issue for this: It will take some time, but we will keep you posted.

Thanks again for asking. We appreciate it very much.

Kind regards,


Comment actions Permalink

Unfortunately the manual list for all these directories is impossible to manage by hand.

I created a PowerShell script referenced by this tweet

Additionally I opened an issue on YouTrack to let Rider solve this

Comment actions Permalink

Unfortunately, in the Rider2020.3 version, the Automatic Configuration is not working anymore, worked fine on Rider2020.2. Why to break the working feature in the new version?

Comment actions Permalink

Hello Tomas,

Could you please clarify some more details about what exactly does not work? Also, it would be useful to get your IDE config folder (menu Help | Diagnostic Tools | Special Files and Folders | Config directory).

Please file a new issue on youtrack and share all the information there. 




Comment actions Permalink

I find it warns me every time I start up Rider. Every time I click "Configure Automatically". So from your explanation, if it was working, I'd only have to do this once. Therefore it can't be working. It's annoying to have to do it every time you switch projects.

I'm using 2020.3


Comment actions Permalink

The same story as described by Craig.

Build #RD-203.7717.10, built on March 17, 2021

Comment actions Permalink

I have a new machine and Rider isn't asking me to automatically perform these exclusions.  Is there a way to trigger that somehow, please?

I'm using the latest EAP at time of writing: JetBrains Rider 2021.1 EAP 9, Build #RD-211.6693.2, built on March 24, 2021

Comment actions Permalink

2021.1.2 running with administrator rights - Automatic Configuration is not working! Previous version did not work as well. Craig is right.

Comment actions Permalink

Still not working.

Comment actions Permalink

I just configured it manually. Even though I had clicked on automatic configuration, rider was never able to add those exceptions - but also never showed any error message.

Now that I added the exceptions manually, the message does not pop up anymore on startup. Seems like it works now!

Comment actions Permalink

Automatic config button isn't working

and I can't find the settings for manual configs

Comment actions Permalink

Hi there,

I apologise for the inconveniences you have with this feature.

Indeed, Rider is unable to add exclusions if started with Administrator rights:

Also, this action does not work if your username contains non-latin characters: Please, check it.

As for not showing the popup, please try to run the action "Reset Windows Defender Notification". One can find it via Find Action menu (Help | Find Action). I would be grateful if you let me know about the results.
Also, the following may help:
"Open options/other.xml in the IDEA settings directory, look for <component name="PropertiesComponent">, delete the sub-element <property name="ignore.virus.scanning.warn.message">."





Please sign in to leave a comment.

Have more questions?

Submit a request