2

以下是我的 ccnet.config 文件,从 ccnet 网页运行此文件时,出现错误 MSB1009:项目文件不存在。任何想法我做错了什么

    <project>
      <name>ITR Test</name>
      <webURL>http://localhost/ccnet/</webURL>

      <triggers>
        <intervalTrigger name="continuous" seconds="30" initialSeconds="30"/>
      </triggers>

      <modificationDelaySeconds>2</modificationDelaySeconds>

      <sourcecontrol type="svn">
        <executable>c:\program files\subversion\bin\svn.exe</executable>
        <trunkUrl>svn://ka/le/TestReports</trunkUrl>
        <workingDirectory>
          C:\source\TestReports\ITRTests\ITRTests\ITRTests
        </workingDirectory>
        <username></username>
        <password></password>
      </sourcecontrol>

      <tasks>
        <!-- Use MsBuild to build the .Net solution-->
        <msbuild>
          <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
          <workingDirectory>
            C:\source\TestReports\ITRTests\ITRTests\
          </workingDirectory>
          <projectFile>ITRTests.sln</projectFile>
          <targets>RunAutomationTests</targets>
          <timeout>15</timeout>
        </msbuild>

        <!-- Use NUnit for unit testing-->
        <nunit path="C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe">
          <assemblies>
            <!--Path to Visual Studio project executable-->
            <assembly>
              C:\source\TestReports\ITRTests\ITRTests\ITRTests\bin\Debug\ITRTests.dll
            </assembly>
          </assemblies>
        </nunit>

        <!-- Email notification to users -->
        <email from="xxx@example.com" mailhost="hostname" mailport="25" includeDetails="TRUE"
             mailhostUsername="username" mailhostPassword="password" useSSL="FALSE" >
          <users>
            <!-- <user name="LeadDeveloper" group="buildmaster" address="mailto:aaa@aaa.com /> -->
            <!-- <user name="Developer1" group="developers" address="mailto:bbb@bbb.com /> -->
          </users>
          <groups>
            <!-- <group name="buildmaster" notification="always" /> -->
            <!-- <group name="developers" notification="change" /> -->
          </groups>
        </email>

      </tasks>

      <publishers>
        <merge>
          <files>
            <file>C:\source\TestReports\ITRTests\ITRTests\ITRTests\bin\Debug\TestResult.xml</file>
          </files>
        </merge>
        <xmllogger/>
      </publishers>

    </project>
  </cruisecontrol>
4

1 回答 1

1

您的源代码控制块似乎将代码放在“C:\source\TestReports\IRTTests\IRTTests\IRTTests”中(注意“IRTTests”的三个级别),但 msbuild 任务的工作目录为“C:\source\TestReports \IRTTests\IRTTests\"(只有两个级别的 'IRTTests')

于 2009-05-27T15:22:34.730 回答