问题描述
我尝试使用巡航控制,SVN和Ms build自动化更新,构建和发布。从svn存储库获取更新并且构建工作正常但是发布时间,在bin文件夹中只有项目dll即将到来,但是其他dll如'system.web','Newtonsoft.Json'等等以及更多dll都没有更新。我给出了'ccnet.config'文件:
I tried to automate update, build and Publish using cruise Control, SVN and Ms build . Take update from svn repository and build is working fine but publishing time, in the bin folder only the project dlls are coming , but other dlls like 'system.web' , 'Newtonsoft.Json' , etc and many more dlls are not updating. My 'ccnet.config' file is given :
<cruisecontrol xmlns:cb="urn:ccnet.config.builder" xmlns="http://thoughtworks.org/ccnet/1/8">
<project name="MyProjectBuild" queue="Q1" queuepriority="1">
<sourcecontrol type="svn">
<trunkurl>https://20.5.76.34:1212/svn//trunk/CruiseControlTest</trunkurl>
<workingdirectory>F:\CruiseControlPOC\src</workingdirectory>
<username>username</username>
<password>password</password>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingdirectory>F:\CruiseControlPOC\BuildScript\</workingdirectory>
<projectfile>Build.xml</projectfile>
</msbuild>
</tasks>
</project>
</cruisecontrol>
我的'build.xml'文件'ccnet.config'在这里给出:
My 'Build.xml' file which 'ccnet.config' refer is given here:
<project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" defaulttargets="Run">
<target name="Run">
<calltarget targets="Compile" />
<calltarget targets="DoPublish" />
</target>
<target name="Compile">
<msbuild projects="..\src\HelloWorld\HelloWorld.sln" />
</target>
<target name="DoPublish">
<msbuild projects="..\src\HelloWorld\HelloWorld\HelloWorld.csproj" targets="_CopyWebApplication;_BuiltWebOutputGroupOutput" properties="OutDir=..\Output\;WebProjectOutputDir=..\..\..\Publish\HelloWorldSite\;"> </msbuild>
<copy sourcefiles="..\Output\" destinationfolder="..\Publish\HelloWorldSite\bin\"> </copy>
</target>
任何人都可以告诉如何使用复制命令将build dll从Output文件夹复制到Publish / bin文件夹,或者还有其他任何使用MsBuild和Cruise Control发布文件。
谢谢
Can anyone tell how to use copy command so as to copy build dlls from Output folder to Publish/bin folder , or is there any other to Publish files using MsBuild and Cruise Control.
Thanks
推荐答案
这篇关于如何使用Cruise Control和MsBuild自动发布?无法复制bin文件夹中的所有发布DLL。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!