我建议使用 Nant 或 MSBuild,只使用由 Visual Studio 生成的 .csproj 文件。然后只需让 CruiseControl 使用您的 Nant 脚本。以下是我编写的 Nant 脚本的摘录,
<csc target="library" output="${basedir}/bin/${basename}.dll" debug="${debug}" optimize="true">
<sources>
<include name="src/app/**/*.cs"/>
</sources>
<references refid="My.Assemblies" />
</csc>
和参考资料
<assemblyfileset id="My.Assemblies"><include name="System.dll"></include>
<include name="System.Configuration.dll"></include>
<include name="System.Core.dll"></include>
<include name="System.Data.dll"></include>
<include name="System.Data.DataSetExtensions.dll"></include>
<include name="System.Drawing.dll"></include>
<include name="System.EnterpriseServices.dll"></include>
<include name="System.Web.dll"></include>
<include name="System.Web.Extensions.dll"></include>
<include name="System.Web.Mobile.dll"></include>
<include name="System.Web.Services.dll"></include>
<include name="System.Xml.dll"></include>
<include name="System.Linq.dll"></include>
</assemblyfileset>