请教nant问题!!!!!!!!
请教nant问题!!!!!!!![ 本帖最后由 wancheng 于 2009-10-16 10:56 编辑 ] 晕
你去掉那些中文解释吧
我看着头大 solutions are not supported in VS2005 and higher..
maybe you can use MSBuild...
<?xml version="1.0"?>
<project name="cpptest" default="run">
<property name="msbuild.dir" value="C:\Windows\Microsoft.NET\Framework\v2.0.50727" />
<target name="run">
<exec program="${msbuild.dir}\MSBuild.exe"
commandline="/p:Configuration=Release .\yourproject.sln" />
</target>
</project>
(I'm in office and can not write chinese with german PC..sorry) 1.用username代替user。
<property name="Dir.Base" value="D:\test\local" />
<target name="t1">
<echo message="正在更新源代码..." />
<vssget
username="coolbug"
password="******"
localpath="${Dir.Base}"
recursive="true"
replace="true"
writable="false"
removedeleted="true"
dbpath="\\coolbug\vss$\srcsafe.ini"
path="$/"
/>
<echo message="已完成源代码更新." />
</target>
2.nant不支持VS2005、VS2008的sln,调用msbuild即可,如果需要输出到指定目录,可能需要安装VS的Web Deployment Projects,或者换一种方案,例如CC.net+msbuild
<property name="Path.MSBuild"
value="${environment::get-variable('SYSTEMROOT')}\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe" />
<target name="t2" depends="t1">
<exec program="${Path.MSBuild}">
<arg line='"${Solution.Filename}"' />
<arg line="/property:Configuration=${Solution.Configuration}" />
<arg value="/property:OutDir=${Build.OutputFolder}" />
<arg value="/target:Rebuild" />
<arg value="/verbosity:normal" />
<arg value="/nologo" />
</exec>
</target>
[ 本帖最后由 cebio 于 2009-9-24 10:34 编辑 ]
页:
[1]