title: visual studio enforce build error using code analysis
body: <p>I'm new to C# and the project as well. My team members are making a lot of spelling mistakes in strings. My manager want that the build should fail if there are spelling errors. While searching I found out <strong>Visual Studio Code Analysis tool</strong> and <strong>Spell Checker Plugins</strong>.</p>
  
  <p>I have configured Code Analysis tool so that it shows analysis error if there are spelling mistakes.  Is there any way to a enforce it as a build failure in such situation? And is it a good approach? Is there any better approach? I'm using VS2012.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have configured Code Analysis to run on every build. Now it's showing an error on running project after saving the code but if I run the code again (without saving), it runs successfully. But I want it show show error on every run until Code Analysis errors are resolved. </p>