Modified the build script.
Set CodeAnalysisTreatWarningsAsErrors as true.
Added the error for code analysis.