Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StyleCop Settings not appear in Visual Studio

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?

like image 680
Arkadi Avatar asked Sep 12 '17 16:09

Arkadi


1 Answers

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.

like image 164
Leo Liu-MSFT Avatar answered Sep 19 '22 10:09

Leo Liu-MSFT