Click here to Skip to main content
15,908,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :
XML
<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>

My 'Build.xml' file which 'ccnet.config' refer is given here:
XML
<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>

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
Posted
Updated 22-May-14 2:10am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900