简体   繁体   English

StyleCop 设置未出现在 Visual Studio 中

[英]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..我安装了StyleCop NuGet包,现在我想更改StyleCop一些设置,但是右键单击解决方案菜单没有出现StyleCop Settings块..

any ideas?有什么想法吗?

StyleCop Settings not appear in Visual Studio StyleCop 设置未出现在 Visual Studio 中

The simple way is to download the StyleCop installer , then install it.简单的方法是下载StyleCop 安装程序,然后安装它。 Once you have done the installation, your Visual Studio should have a new command under the Tools menu:完成安装后,Visual Studio 的“工具”菜单下应该有一个新命令:

新 StyleCop 菜单

In Visual Studio this menu appears when you right click on your Project (do not right click the Solution).在 Visual Studio 中,右键单击项目(不要右键单击解决方案)时会出现此菜单。 In that options menu there should be a menu item for StyleCop Settings :在那个选项菜单中应该有一个StyleCop Settings的菜单项:

在此处输入图片说明

The Settings.StyleCop file can be opened from the Explorer and edited through a GUI. Settings.StyleCop 文件可以从资源管理器中打开并通过 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 Program Files 文件夹中的名为 StyleCopSettingsEditor.exe 的应用程序上。

Project 上的 StyleCop 菜单

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.此外,如果您仍想使用 NuGet 包管理器和 Visual Studio 2017,您需要参考 Unity Answers 论坛上的John Vanderbeck 解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM