如何使用<exec program =“”>在NANT中使用msbuild.exe cmd行

时间:2017-02-23 12:07:53

标签: msbuild nant

如何使用Nant脚本使用msbuild.exe long cmd行.MSBuild命令是 - &gt;

<target name="publish-project-release-folder">
<exec program="C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe" verbose="true" >
<arg value="/target:Build;PipelinePreDeployCopyAllFilesToOneFolder" />
<arg value="/p:Configuration=Release;_PackageTempDir=C:\cicheckout\outdir\;AutoParameterizationWebConfigConnectionStrings=false" />
<arg value="C:\a\testteamcity\demo\WebApp\webapp.csproj" />
</exec>

Error : C:\245\hello.build(9,6):
'C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe' is not a valid value   for attribute 'program' of <exec ... />.
Illegal characters in path.
Total time: 0 seconds.

0 个答案:

没有答案