#217 improved code quality through stylecop and resharper, and make them ready for build server