Since you haven't actually posted one, I will assume your question is what do you do about that message. The answer is given in the message.
Quote:
Ensure that your Main function has STAThreadAttribute marked on it
If that is not what you are after then you should consider actually asking a question.