Reputation: 12053
I have problem with integration the newest version StyleCop with Visual Studio 2013 Ultimate. I have also installed Re# 9.
This answer not working on my pc :/
I have installed StyleCop nuget packages.
I changed entry "True" in csproj file (by notepad). It works I get many error from StyleCop.
1) Why StyleCop is not integrated with Visual Studio? I should see "Run StyleCop" option in context menu on project, I do not see. 2) How can I determine path for my setting file in csproj?
Upvotes: 1
Views: 920
Reputation: 18639
The nuget package StyleCop.MSBuild
simplifies the adding of the properties to a csproj required to run StyleCop as part of the build. It also references a StyleCop instance inside /packages/
which means that it is downloaded from sourcecontrol and each developer does not need StyleCop installed.
R# by itself doesn't have any StyleCop settings, however it's ruleset can be configured to match StyleCop's. The easiest way to do this is with a plugin. This is currently in prerelease for R# 9.1 so make sure you have Include prelease plugins
checked inside R# Settings > Environment > Extension Manager
.
To get the context menus, you need to install StyleCop on your local machine. This currently does not support Visual Studio 2015.
It is important to keep the version used by R#, the version used by StyleCop.MsBuild and the version installed on your machine insync otherwise it will lead to false positives.
Upvotes: 2
Reputation: 10744
You should have 'Run StyleCop' options in the Tools menu and the context menu of the Solution Explorer. I have ReSharper installed, but I don't think it is ReSharper that adds these menu items. VS Express edition does not support integration of add-ins if you are using an Express/Community edition..
Upvotes: 0