错误 MSB1009:运行 fromCruiseControl 时项目文件不存在

发布于 2024-07-12 21:55:03 字数 3264 浏览 5 评论 0原文

以下是我的 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="[email protected]" mailhost="hostname" mailport="25" includeDetails="TRUE"
             mailhostUsername="username" mailhostPassword="password" useSSL="FALSE" >
          <users>
            <!-- <user name="LeadDeveloper" group="buildmaster" address="mailto:[email protected] /> -->
            <!-- <user name="Developer1" group="developers" address="mailto:[email protected] /> -->
          </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>

Following is my ccnet.config file, When running this file from ccnet webpage, it is giving me error MSB1009: Project file does not exist. ANy idea where I am doing wrong

    <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="[email protected]" mailhost="hostname" mailport="25" includeDetails="TRUE"
             mailhostUsername="username" mailhostPassword="password" useSSL="FALSE" >
          <users>
            <!-- <user name="LeadDeveloper" group="buildmaster" address="mailto:[email protected] /> -->
            <!-- <user name="Developer1" group="developers" address="mailto:[email protected] /> -->
          </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>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼中杀气 2024-07-19 21:55:03

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

Your sourcecontrol block appears to be placing the code in "C:\source\TestReports\ITRTests\ITRTests\ITRTests" (note the three levels of 'ITRTests') but the msbuild task has a working directory of "C:\source\TestReports\ITRTests\ITRTests\" (only two levels of 'ITRTests')

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文