Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
巡航控制是否使用nAnt或MSbuild?_Msbuild_Cruisecontrol.net_Nant - Fatal编程技术网

巡航控制是否使用nAnt或MSbuild?

巡航控制是否使用nAnt或MSbuild?,msbuild,cruisecontrol.net,nant,Msbuild,Cruisecontrol.net,Nant,我在理解巡航控制方面有问题。 我想创建一个构建自动化,以便在我的项目中执行构建。为此,我在ccnet.config文件中创建了以下条目 <project name="My Web Release " description="Web config"> <workingDirectory>d:\GIT</workingDirectory> <triggers/> <sourcecontrol type="git">

我在理解巡航控制方面有问题。 我想创建一个构建自动化,以便在我的项目中执行构建。为此,我在ccnet.config文件中创建了以下条目

<project name="My Web Release " description="Web config">
  <workingDirectory>d:\GIT</workingDirectory>

  <triggers/>

  <sourcecontrol type="git">
    <repository>GIT REPO</repository>
    <branch>release-name</branch>
    <autoGetSource>true</autoGetSource>
    <fetchSubmodules>true</fetchSubmodules>
    <executable>C:\Program Files (x86)\Git\cmd\git.exe</executable>
    <tagOnSuccess>false</tagOnSuccess>
    <commitBuildModifications>false</commitBuildModifications>
    <commitUntrackedFiles>false</commitUntrackedFiles>
    <tagCommitMessage> Build {0}</tagCommitMessage>
    <tagNameFormat>Build-{0}</tagNameFormat>
    <committerName>Build</committerName>
    <committerEMail>build@build.com</committerEMail>
    <workingDirectory>$(workingDirectory)\Sources\WEB</workingDirectory>
    <timeout>600000</timeout>
  </sourcecontrol>

  <tasks>
    <msbuild>
      <executable>c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
      <buildFile>BuildScript.xml</buildFile>
      <targets>NewBuild</targets>
      <logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
    </msbuild>
  </tasks>

  <publishers>
    <xmllogger />
    <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
  </publishers>

</project>

d:\GIT
吉特回购
发布名称

我说了这句话:

<move file="originPath" tofile="TargetPath"/>

但我得到:

BuildScript.xml(18,3):错误MSB4036:未找到“移动”任务 建立C检查以下内容:1.)项目中任务的名称 文件与任务类的名称相同。2.)任务类是 “public”并实现Microsoft.Build.Framework.ITask接口。 3.)任务在项目文件或位于“C: \Windows\Microsoft.NET\Framework\v2.0.50727“目录

让我抓狂的是,在我们迁移到巡航控制之前,它就已经工作了


这被解释为nAnt还是MSBuild?知道我为什么会出现这些错误吗?

它看起来像是nant和msbuild的混合,如果是msbuild,它会是这样的

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Tools="4.0">
<Target Name="Move">
<PropertyGroup>
   <configuration>CLOSED</configuration>
</PropertyGroup>

<Move SourceFiles="Somefilefile" DestinationFolder="c:\temp"/>
</Target>
</Project>

关闭

因此,大小写是一个问题,您需要指定工具版本,因为move在4.0中可用。

它看起来像nant和msbuild的混合,如果它是msbuild,则看起来像

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Tools="4.0">
<Target Name="Move">
<PropertyGroup>
   <configuration>CLOSED</configuration>
</PropertyGroup>

<Move SourceFiles="Somefilefile" DestinationFolder="c:\temp"/>
</Target>
</Project>

关闭
因此,大小写是一个问题,您需要指定工具版本,因为move在4.0中可用。

在您使用时,CC将使用MSBuild。在BuildScript.xml中有什么?如果您使用的是VS,为什么不能直接构建sln而不是使用BuildScript.xml?在您使用时,CC将使用MSBuild。在BuildScript.xml中有什么?如果您使用的是VS,为什么不能直接构建sln而不是使用BuildScript.xml?