Msbuild 10 和 Nant 不复制 weboutput
我似乎无法让 Nant 将我的 Web 解决方案复制到输出文件夹,例如测试服务器。即使构建成功,它也不会复制文件。
根据文档 /p:WebProjectOutputDir 应该这样做。
提前致谢。
<echo message="Compiling ${msbuild.workingdir}\${package.name}.sln - Copy to ${development.path}"/>
<exec program="msbuild.exe" basedir="${msbuild.path}" workingdir="${msbuild.workingdir}">
<arg value="/p:Configuration=Test" />
<arg value="/p:UseWPP_CopyWebApplication=True" />
<arg value="/noconsolelogger" />
<arg value="/v:d" />
<arg value="/logger:${lib.nant.path}\loggers\Rodemeyer.MsBuildToCCnet.dll"/>
<arg value="/t:rebuild;ResolveReferences;_CopyWebApplication"/>
<arg value="/p:OutDir=\\latchford\Drop\Club.Registration.DailyBuild\current\bin" />
<arg value="/p:WebProjectOutputDir=\\latchford\Drop\Club.Registration.DailyBuild\current\" />
<arg value="${package.name}.sln"/>
</exec>
<property name="msbuild.output.file" value="${msbuild.workingdir}/msbuild-output.xml"/>
<move if="${file::exists(msbuild.output.file)}" file="${msbuild.output.file}" todir="${log.dir}" failonerror="false" overwrite="true" />
I cant seem to get Nant to copy my web solution to an output folder, such as a Test server. It simply will not copy the files, even though the build succeeds.
According to the docs /p:WebProjectOutputDir should do it.
Thanks in advance.
<echo message="Compiling ${msbuild.workingdir}\${package.name}.sln - Copy to ${development.path}"/>
<exec program="msbuild.exe" basedir="${msbuild.path}" workingdir="${msbuild.workingdir}">
<arg value="/p:Configuration=Test" />
<arg value="/p:UseWPP_CopyWebApplication=True" />
<arg value="/noconsolelogger" />
<arg value="/v:d" />
<arg value="/logger:${lib.nant.path}\loggers\Rodemeyer.MsBuildToCCnet.dll"/>
<arg value="/t:rebuild;ResolveReferences;_CopyWebApplication"/>
<arg value="/p:OutDir=\\latchford\Drop\Club.Registration.DailyBuild\current\bin" />
<arg value="/p:WebProjectOutputDir=\\latchford\Drop\Club.Registration.DailyBuild\current\" />
<arg value="${package.name}.sln"/>
</exec>
<property name="msbuild.output.file" value="${msbuild.workingdir}/msbuild-output.xml"/>
<move if="${file::exists(msbuild.output.file)}" file="${msbuild.output.file}" todir="${log.dir}" failonerror="false" overwrite="true" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1.OutDir 属性必须以斜杠结尾:/p:OutDir=..\current\bin\
2.参数UseWPP_CopyWebApplication不需要仅仅复制到您的输出
3.似乎只需要重建目标来调用
1.The OutDir property must end with a trailing slash: /p:OutDir=..\current\bin\
2.Parameter UseWPP_CopyWebApplication doesn't required just to copy to your output
3.It seems that enough only rebuild target to call