没有呀,我测试的就没问题。
#define dlgusing System; 
namespace Hello
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>

class MainApp
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
// TODO: 在此处添加代码以启动应用程序
//
#if dlg
Console.WriteLine("Hello World using C#!");
#else
Console.WriteLine("dlg!");
#endif
}
}
}