Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 280329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:06:34+00:00 2026-05-12T05:06:34+00:00

My nant script fails when I run it under cruise-control on (Windows Server 2003),

  • 0

My nant script fails when I run it under cruise-control on (Windows Server 2003), but works fine when run on the console.

nant script (relevant section):

<target name="compile" depends="init">
    <echo message="Build Directory is ${build.dir}" />
    <exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe"
          commandline="${solution.file} /m /t:Clean /p:Configuration=${project.config} /v:q" workingdir="." />
    <exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe"
          commandline="${solution.file} /m /t:Rebuild /p:Configuration=${project.config} /v:q" workingdir="." />
</target>

cc-config:

<tasks>

    <nant>
        <executable>C:\Program Files\nant-0.86-beta1\bin\nant.exe</executable>
        <baseDirectory>C:\Builds\WorkManagement\RC1</baseDirectory>
        <buildArgs>-D:outputType=Xml</buildArgs>
        <nologo>false</nologo>
        <buildFile>WaterWorks.build</buildFile>
        <targetList>
            <target>build</target>
        </targetList>
        <buildTimeoutSeconds>1200</buildTimeoutSeconds>
    </nant>

</tasks>

This has been working but I think a recent upgrade of nunit (to 2.5.1) has confused things.

cc nant log:

    Buildfile: file:///C:/Builds/WorkManagement/RC1/WaterWorks.build 
    Target framework: Microsoft .NET Framework 3.5 
    Target(s) specified: build 
    [loadtasks] Scanning assembly "NCoverExplorer.NAntTasks" for extensions. 
    [property] Read-only property "outputType" cannot be overwritten. 

    clean: 

    [delete] Deleting directory 'C:\Builds\WorkManagement\RC1\build'. 

    version: 

    init: 

    [tstamp] 15 July 2009 10:31:20. 
    [mkdir] Creating directory 'C:\Builds\WorkManagement\RC1\build\net-3.5.win32-WaterWorksConsole-release\'. 
    [echo] Current Directory: C:\Builds\WorkManagement\RC1 

    drop-database: 

    create-database: 

    compile: 

    [echo] Build Directory is build/net-3.5.win32-WaterWorksConsole-release/ 
    [exec] Microsoft (R) Build Engine Version 3.5.21022.8 
    [exec] [Microsoft .NET Framework, Version 2.0.50727.1433] 
    [exec] Copyright (C) Microsoft Corporation 2007. All rights reserved. 
    [exec] Microsoft (R) Build Engine Version 3.5.21022.8 
    [exec] [Microsoft .NET Framework, Version 2.0.50727.1433] 
    [exec] Copyright (C) Microsoft Corporation 2007. All rights reserved. 
    [exec] C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.5.1.9189, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 
    [exec] AddressTests.cs(1,7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?) 
  :
  :

console command to run nant:

nant /f:WaterWorks.build build

Bit mystified! Can anyone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:06:34+00:00Added an answer on May 12, 2026 at 5:06 am

    Well, have you installed NUnit version 2.5.1.9189 on the continuous build machine in the GAC? (That exact version.)

    Personally I don’t like installing dependencies in the GAC anyway – I like to have them explicitly referenced with relative paths, but YMMV.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am modifying a Nant build script to run some unit tests. I have
We were running Tarantino in a Nant build script but we're getting some new
I'm trying to use NAnt/NAntContrib build script to build a web application on Windows
I want to use the <nant> task in my build script but I want
I have the following Nant Script snippet. <zip zipfile=${devEnvironment}..\dev-${datetime::get-year(datetime::now())}${datetime::get-month(datetime::now())}${datetime::get-day(datetime::now())}.zip> <fileset basedir=${devEnvironment}> <include name=**/*/> </fileset>
I wrote the following Nant script on my Vista dev machine and was pleased
I've already got a NAnt build script that builds/runs tests/zips web project together, etc.
I have a WPF project and I'm trying to setup a NAnt build script
How to run NAnt scripts in command line and get the timings of each
Howdy, I'm having a bit of an issue runnning a NAnt script that used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.