change the compile target from winexe to exe.
Stack Overflow See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9
Forum Rules