可能msbuild任务无法生成vs.net 2008解决方案(例如错误版本的msbuild.exe 称为)。
用这样的东西怎么样:
<!-- msbuild from .net 2.0 is unable to build vs.net 2008 solutions. Let's try to find .net 3.5 version of msbuild -->
<property name ="msbuild.exe" value="msbuild"/> <!-- default-->
<property name="windows.dir" value="${environment::get-variable('windir')}"/>
<property name="net3.5.dir" value="${windows.dir}/Microsoft.NET/Framework/v3.5"/>
<if test="${directory::exists(net3.5.dir)}">
<property name="msbuild.exe" value="${net3.5.dir}/msbuild.exe"/>
</if>
<!-- current nant msbuild task is unable to build VS.NET 2008 solutions -->
<!-- let's try run correct msbuild.exe via the exec task -->
<exec program ="${msbuild.exe}" verbose="true">
<arg value="/property:TeamOutPath=Release\FS.IPSA.WebAdmin" />
<arg value="FS.IPSA.WebAdmin\FS.IPSA.WebAdmin.csproj"/>
</exec>