'System.STAThreadAttribute' e 'System.MTAThreadAttribute' não podem ser aplicados a '|1'

Os atributos 'System.STAThreadAttribute' e 'System.MTAThreadAttribute' são mutuamente exclusivos.

ID do Erro: BC31513

Para corrigir este erro

  1. Aplique System.MTAThreadAttribute ou System.STAThreadAttribute, mas não ambos.

Confira também