.net - Visual Studio 2010 Code Analysis - Run on Solution -
i manually run code analysis entire solution, not on building project, , not using fxcop, if possible. did enable ca on build really, slowed down build process, , can't have that. seems weird me code analysis can run per project manually through menus, not entire project.
am missing something?
thanks.
i don't know of menu/command can used run ca projects, can create new solution configuration (e.g. codeanalysis based on debug) , set ca each project run configuration, letting run ca projects without slowing down regular debug build.
create new configuration called "code analysis" (build -> configuration manager, <new...> under active solution configuration).
in ca properties tab each project, set ca run "code analysis" configuration, , not run debug configuration (and other configurations don't want ca run on).
you can same on code contracts tab if don't want contract checking on regular build configurations.
now when set solution configuration debug , build, should not have ca , cc being performed. when want ca , cc checks done, change configuration 'code analysis' , build.
it's not convenient menu or toolbar option, might alternative works you.
hope helps.
Comments
Post a Comment