Note that there are some explanatory texts on larger screens.

plurals
  1. POMSBuild a .dbproj seems to run twice
    primarykey
    data
    text
    <p>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.</p> <p>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.</p> <p>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.</p> <pre><code>&lt;exec program="${framework::get-tool-path('msbuild.exe')}" append="true" failonerror="true" verbose="true"&gt; &lt;arg value="${database.sln}" /&gt; &lt;arg value="/p:OutputPath=${build.output.database}" /&gt; &lt;arg value="/nologo" /&gt; &lt;arg value="/t:Build" /&gt; &lt;arg value="/p:Configuration=Release" /&gt; &lt;arg value="/p:WorkingDir=&amp;quot;.&amp;quot;" /&gt; &lt;arg value="/verbosity:normal" /&gt; &lt;arg value="/v:m" /&gt; &lt;/exec&gt; </code></pre> <p>The output we get looks like</p> <pre><code>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). </code></pre> <p>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.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload