StyleCop Settings not appear in Visual Studio

13.6k Views Asked by At

I installed StyleCop NuGet package, now I want to change few settings of StyleCop, but right click on solution menu doesn't appear StyleCop Settings block..

any ideas?

2

There are 2 best solutions below

1
On BEST ANSWER

StyleCop Settings not appear in Visual Studio

The simple way is to download the StyleCop installer, then install it. Once you have done the installation, your Visual Studio should have a new command under the Tools menu:

New StyleCop menu

In Visual Studio this menu appears when you right click on your Project (do not right click the Solution). In that options menu there should be a menu item for StyleCop Settings:

enter image description here

The Settings.StyleCop file can be opened from the Explorer and edited through a GUI. If that doesn’t work, try dragging the Settings file onto an application called StyleCopSettingsEditor.exe which is installed in your StyleCop Program Files folder.

StyleCop menu on Project

Besides, if you still want to use NuGet Package Manager and Visual Studio 2017 you’ll want to refer to John Vanderbeck’s solution on the Unity Answers forum.

0
On
  1. Right-Click on Your project;
  2. Add new item;
  3. Look for Settings File

Done