111,092
社区成员




#if XXX
#else
#endif
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ == 3.5)using System.Linq;
$endif$using System.Web;
namespace $rootnamespace$
{
public class $safeitemrootname$
{
}
}
代码里的$if$ ($targetframeworkversion$ == 3.5)using System.Linq;
是否是楼主所需要的
#if(NET20)
int i = 10;
#else
int i = 20;
#endif
好像可以这样,不知道是不是你想要的效果。