How can I disable live code analysis in Visual Studio 2017?

前端 未结 4 1180
北恋
北恋 2021-02-07 01:01

Where can I disable live code analysis in Visual Studio 2017? This pops up every time I start my solution. I do not need this:

I\'ve followed this supp

4条回答
  •  失恋的感觉
    2021-02-07 01:40

    I had a similar problem. There is this huge temp initialization file in the project, 50K+ lines. Whenever I opened it, Live code analysis would kick in and VS would eat up CPU up to 50%. I was able to turn it off by creating an empty rule set and set it on Code Analysis section of the project's properties. Now It looks like it's running, only for a few seconds and then it stops since there is no rule to apply.

    I don't know if this exactly applies to your problem but here how it goes.

    To create an empty rule set;

    • Click "Choose multiple rule sets" from the ComboBox under "Run this ruleset" :

    • Make sure no rule set is checked in the "Add or Remove Ruleset" window.

    • Click "Save As" button:
    • In file dialog, save your new rule set. I named mine as "EmptyRuleSet".
    • After saving process, new empty rule set should be selected in the ComboBox. Click the "Open" button below :
    • In rule set details, uncheck all the sub rule sets and there is only "None" under "Action" column:
    • Save the changes on project properties. After these steps, you can see that "Live Code Analysis" run empty for a few seconds when you open a file or start the solution, then it stops. You may have to restart the VisualStudio.

提交回复
热议问题