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 296037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:30:43+00:00 2026-05-12T06:30:43+00:00

I have a nant build script that specifies the compilation of various Visual Studio

  • 0

I have a nant build script that specifies the compilation of various Visual Studio solution files.

<target name="compile.solution1" description="Compiles solution 1">
    <msbuild project="${src.dir}\Solution1.sln" verbosity="${build.verbosity}">
        <property name="Configuration" value="${build.config}" /> 
        <property name="OutputPath" value="${build.fullpath}/${prefix.sol1}" />
        <property name="ReferencePath" value="${assembly.dir}" />
    </msbuild>
</target>   

I have multiple solutions specified in targets compile.solution1, compile.solution2, compile.solution3…compile.solution7

I have another target that specifies that the whole bunch of solutions are to be compiled:

<target name="compile" depends="compile.solution1, compile.solution2,
 compile.solution3, compile.solution4, compile.solution5, compile.solution6,
 compile.solution7" description="Compiles all targets" />

When I time how long it it takes to execute the target “compile” and compare it to the sum of the time it tasks to execute each of the individual compile.solutionX targets I find that the “compile” target takes 30 seconds longer.

I don’t understand why this is the case? In my mind the “compile” target should act as a for-loop and the difference between it and executing each one individually should be minimal.

Does anyone know if more goes on in the background in Nant when processing multiple solutions defined in a single target?

Sorry for the horrible title of the question….I just didn’t know how to phrase it.

  • 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-12T06:30:43+00:00Added an answer on May 12, 2026 at 6:30 am

    I’d guess the dependency evaluation takes longer when you have multiple targets listed in the depends attribute, and that it takes more additional time for each non-trivial target added to the list.

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

Sidebar

Related Questions

I have a section of C# code within my nant build script that runs
I have a NAnt script that does a build and deployment of an ASP.Net
Summary I currently have a NAnt build script that performs a vssget on either
I am modifying a Nant build script to run some unit tests. I have
I have a WPF project and I'm trying to setup a NAnt build script
I have this SQL change script that runs as part of my nant orchestrated
I have a msdeploy in my nant script(Team City) that is working except it
I have a Nant build file which executes NUnit after compiling the dll's. I
I have a simple NAnt build file, which attempts to perform an update from
I have nant set up to build my ASP.NET MVC project and it works

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.