visual studio 2015 - R# & StyleCop issue: Method not found -


i have downloaded r# 9.1 in order integrate stylecop it. passed when installing both r# , extension stylecop. however, when go solution folder (in visual studio 2015) , right-click on 1 of projects , click on "run stylecop" displays error:

error message: method not found

initially installed r# 9.2 , result same, decided go 9.1 version. reinstalled r# , stylecop both once , multiple times r#'s extension integrating stylecop.

my current set r# , stylecop is:

  • resharper 10.0.1
  • stylecop jetbrains 4.8

enter image description here

which gives in r# options: enter image description here

this gives me r# validation of rules.

however, doesn't give me right click run functionality.

so had click around , found stylecop doesn't have install vs 2015, installed visual stylecop , have recreated issue. if using visual stylecop may worth while adding issue on github.

enter image description here

personally, don't use right click functionality, instead warnings build via stylecop.msbuild nuget package each project want monitor:

enter image description here

once have no errors, use stylecop.error.msbuild keep way, again nuget:

enter image description here

the more modern way of doing make use of analyzers feature of visual studio 2015, stylecop.analyzers.

enter image description here

even stylecop jet brains 1 treats preferred implementation.. r# gallery

automatically disable analysis if stylecop.analyzers referenced in vs2015 (#20)

moving stylecop.analyzers, add them rules in relevant *.ruleset file (same place codeanalysis rules)

enter image description here

and can run them via

enter image description here

which has same effect right click run stylecop trying working.

i.e. giving:

enter image description here

any clarifications or further detail, please let me know.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -