Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird VS2008 (devenv) Nant compilation issue
    text
    copied!<p>Here is the background, we have a solution file (a.sln) which contains 2 projects (service.csproj &amp; client.csproj). There is another old solution file (b.sln) which contains 3 projects (service.csproj, client.csproj &amp; test.csproj). We dont use this solution file and the test project too.</p> <p>We use NANT script for compilation. Within NANT we use the <code>&lt;exec&gt; task</code> which calls the "devenv.com" to compile the solution files. I was trying to make some changes to the build script (generating the proxy for the service on the fly during build), so for this I was trying to compile the service.csproj file alone. I updated the NANT script as shown below: </p> <pre><code>&lt;exec program="${visualstudio.install.dir}\devenv.com" commandline="&amp;quot;${base.dir}\Service.csproj&amp;quot; /rebuild ${config}" failonerror="true" /&gt; </code></pre> <p>But when the above line is executed it compiles (in the following order)</p> <p>a. client.csproj b. service.csproj c. test.csproj</p> <p>The service.csproj does not have any project references to the client and test project. </p> <p>I broke my head to find what exactly is happening and how the client/test projects are getting compiled.</p> <p>This is what I found, we have the following folder structure:</p> <pre><code>MyFolder -&gt; -&gt; Service service.csproj b.sln -&gt; Client client.csproj -&gt; Test test.csproj a.sln </code></pre> <p>Since b.sln was obsolete and not used it was in the MyFolder -> Service folder (same folder as the service.csproj file). (Developers are so bad with this in my new company that they dont delete unused files and just keep renaming it as _old.)</p> <p>The devnenv.com was somehow taking the project files from the b.sln file and compiling them. I deleted the b.sln file and the script compiles the service.csproj without any issues.But when the service.csproj and b.sln are in the same folder visual studio (devenv.com) tries to compile all the 3 projects mentioned within the solution file. </p> <p>Anyone have any idea on what is happening?</p>
 

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