Reputation: 192
My environment is TFS 2013, Visual Studio 2013, The [Stylecop check in policy] had been installed into TFS, it works.
Now I am creating a custom rule by the following instruction. http://stylecopplus.codeplex.com/wikipage?title=How%20to%20Create%20StyleCop%20Custom%20Rule
Currently it does not work, it uses framework 3.5, I thought it could be use higher version, so I use 4.5 to try, but it still does not work.
The instructions show placing the dll file into the styleCop folder. I put it into VS extension folder because I am using TFS style cop, but it still does not work.
Does someone create a custom rule successfully on TFS?
Upvotes: 0
Views: 360
Reputation: 3170
Your question regards using stylecop in TFS seems to be duplicate: Best way to integrate StyleCop with TFS CI
More information regards custom rules in TFS can be found here: Enforce custom stylecop rules for a checkin policy on TFS
Also, StyleCop rules are written in .NET3.5 because this is the supported version. Trying to write rules in .NET4.5 would be silly because the rules would simply not work. The link you provided actually describes that fact.
Upvotes: 1