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

  • Home
  • SEARCH
  • 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 7309039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:39:31+00:00 2026-05-28T23:39:31+00:00

When we build our Visual Studio 2010 Database Project from the command line using

  • 0

When we build our Visual Studio 2010 Database Project from the command line using msbuild.exe it can sometimes run twice from the same command line.

We call msbuild from a nAnt script, and just call the ‘Build’ target. Our database project is quite large so it can take about 4 mins to run through a single time. When it runs through twice our database build takes over 8 minutes.

Here is the exec section we use to call the build. It runs on a .sln file that only has a single .dbproj in it.

<exec program="${framework::get-tool-path('msbuild.exe')}" append="true" failonerror="true" verbose="true">
    <arg value="${database.sln}" />
    <arg value="/p:OutputPath=${build.output.database}" />
    <arg value="/nologo" />
    <arg value="/t:Build" />
    <arg value="/p:Configuration=Release" />
    <arg value="/p:WorkingDir=&quot;.&quot;" />
    <arg value="/verbosity:normal" />
    <arg value="/v:m" />
</exec>

The output we get looks like

Creating a model to represent the project...
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
(x) problems have been detected.
[a list of warnings based on the db analysis]
The results are saved in (y).
Creating a model to represent the project...
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
(x) problems have been detected.
[a list of warnings based on the db analysis]
The results are saved in (y).

Can anyone help as to why the target seems to be called twice (only sometimes – I haven’t figured out why only sometimes). The script always runs on an empty folder structure so there is never a build output left over from a previous run of the build.

  • 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-28T23:39:32+00:00Added an answer on May 28, 2026 at 11:39 pm

    First of all try to change the output verbosity to diagnostic for MSBuild:

    <arg value="/v:diag" />
    

    And the same for the Ant script. I don’t have experience with Ant , but you shpould know how to do it 😉
    Hopefully you will find a reason in the diagnostic logs…

    BTW:
    You have duplicate command line options for MSBuild. Remove one arg from the following:

    <arg value="/verbosity:normal" />
    <arg value="/v:m" />
    

    /v is abbreviation for /verbosity see MSDN for MSBuild command line options reference.

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

Sidebar

Related Questions

We're currently using Visual Studio to build our ClickOnce deployment packages, but we'd like
All: We are using Visual Studio 2010, and we have recently upgraded our workstations
We are using the MS Unit Testing Framework from Visual Studio 2010. At the
I am using a SQL 2008 database project (in visual studio) to manage the
I'm considering running unit tests for my Visual Studio 2010 projects on our build
Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're
We are building Office 2007 add-ins using Visual Studio 2008. Our builds are performed
Immediately after we upgraded to visual studio 2010 and the 4.0 framework our trunk
We have moved to Visual Studio 2010 but our TFS folks are not ready
We are trying to upgrade our code base to use Visual Studio 2010 but

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.