CA fixes + Added CodeAnalysis to build script.