To turn off StyleCop at solution level:
- Create(or copy an existing) a setting file 'Settings.StyleCop' in the root directory containing the *.sln file.
- Add the below xml and save
<StyleCopSettings Version="105">
<GlobalSettings>
<BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
</GlobalSettings>