2017-03-27 24 views
0

我希望使用StyleCop來構建自定義規則集。我下載了最新版本的SytleCop,我按照Blog之一執行程序。StyleCop中的問題Visual Studio 2015中的自定義規則集成

我實施與上述博客相同。

Project -> Right Click -> StyleCop Settings 

enter image description here

它打開使用StyleCop 5.0 (build 5.0.6187.1)

enter image description here

在上面的窗口,我能不能看到我的自定義規則的設置StyleCop的對話窗口。我打開文件瀏覽器,然後導航到相應項目的文件路徑,還有我注意到Settings.StyleCop

enter image description here

我試圖通過雙擊打開Settings.StyleCop,它的開通使用StyleCop 4.7 (4.7.55.0)設置文件

enter image description here

請阿西斯如何創建自定義規則以及如何在我的代碼中應用規則?

回答

0

取消安裝你通過工具安裝任何擴展 - >擴展和更新 - >了StyleCop

enter image description here

而且重新安裝StyleCop(即,取消安裝並重新安裝),因爲一些DLL將不會刪除上述擴展文件。

相關問題