Is there a way to integrate StyleCop into an NAnt script so that the build fails if there are too many style violations?
There seems to be no NAnt task for StyleCop, but we found StyleCopCmd . However, it only seems to generate an XML file as a result that we need to parse. Is there an easier solution?
Yes - I set StyleCop to work only last week! (I have not used anything but StyleCop ...)
, , , , StyleCop Visual Studio 2008, , , .csproj, , .
, NAnt script, .
, , , VS2008, script. StyleCop .
, !
NAnt.
:
: http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/24/source-analysis-msbuild-integration.aspx
StyleCop , , ( ), , ( Visual Studio, MSBuild...).
, , NAnt MSBuild , StyleCop .
If you do not want to do this through MSBuild, you can do this using StyleCopCLI http://stylecopcli.sourceforge.net/
Source: https://habr.com/ru/post/1738012/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738007/mongodb-in-desktop-application&usg=ALkJrhjfL6Dlyi4FJsVl7Q4DNrCyYLs1Vwhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738008/what-happens-to-my-web-application-if-javascript-is-disabled&usg=ALkJrhi7iLnoJ591fzwpPkyEOT5prMt1cQHow to parse XML (using XELement) with multiple namespaces? - c #Expand only cube diagram, no processing - ssasHow to simulate a "target day" in UML Classdiagrams - javaProblems reading an RSS feed using jQuery.get () - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738014/what-are-good-places-to-find-free-xaml-images&usg=ALkJrhj0Jkuseh81ZtJCldnTpZshkDb2QgSoftware Evaluation - License - licensingDrupal не может создать папку "файлы" (и любую загрузку PHP скрипт) - drupalStreamWriter does not create a new file - c #All Articles