0

When using StyleCop, it recommends me to move my using statements inside the scope of my namespace (SA1200). However, if I follow that rule (which I've never heard of before), I get warning IDE0065, which suggests me to not put using statements into the namespace. So which of them is right and which of them is wrong? Or at least preferrable?

André Reichelt
  • 1,484
  • 18
  • 52
  • 1
    None is correct/both are correct. It's a matter of preference. You need to align your VS settings with your StyleCop settings. – Camilo Terevinto Oct 28 '20 at 09:09
  • 1
    Check this [related question](https://stackoverflow.com/questions/26629264/stop-visual-studio-from-putting-using-directives-outside-namespace) to see how you can tweak either StyleCop or VS – Cleptus Oct 28 '20 at 09:10

0 Answers0