Note that there are some explanatory texts on larger screens.

plurals
  1. PONAnt + MSBuild (4.0) == MSBuild launch failure w/directory not found error
    primarykey
    data
    text
    <p>Ive got CC.Net and NAnt (and MSBuild) running on a new VM-based build server (Win7-64 Pro). </p> <p>CC.Net can call MSBuild just fine - but I run into problems there when dealing with project-scope builds. The conditionals just dont have what I need. Not even close.</p> <p>So I decide to deal with those conditions by calling MSBuild with NAnt, which fails every time. When I run the nant script from the command prompt, I get this:</p> <pre><code>[loadtasks] Failure scanning "C:\nant\bin\extensions\common\2.0\Collection Gen.dll" for extensions. Could not load file or assembly 'Microsoft.VSDesigner, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Buildfile: file:///c:/c7/projects/dyndata/dyndata.build Target framework: Microsoft .NET Framework 4.0 Target(s) specified: build build: [loadtasks] Scanning directory "c:\nantcontrib\bin\lib" for extension assemblies . [echo] Building DynData v7.0.7 BUILD FAILED c:\c7\projects\dyndata\dyndata.build(24,12): Failed to start MSBuild. c:\c7\projects\dyndata\dyndata.build(24,12): External Program Failed: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbui ld.exe (return code was 1) Total time: 0.4 seconds. c:\c7\projects\dyndata\dyndata.build(24,12): Failed to start MSBuild. c:\c7\projects\dyndata\dyndata.build(24,12): 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe' failed to start. The directory name is invalid </code></pre> <p>The Designer assembly is present on this machine, which has VS2010 Pro installed on it. The build folder is correct. The framework folder is correct. Umpteen searches for nant/msbuild and this message have yielded nothing substantive.</p> <p>These items have been tried and failed to change the results:</p> <p><a href="https://stackoverflow.com/questions/2353404/nant-msbuild-task-with-net-4-0-rc">Nant msbuild task with .net 4.0 rc</a></p> <p><a href="https://stackoverflow.com/questions/530262/net-projects-build-automation-with-nant-msbuild-svn">.NET projects build automation with NAnt/MSBuild + SVN</a> (tho I am using Vault)</p> <p>I tried to build the nant code so I could debug the problem via VS2010's debugger but the source project is an unworkable mess and wont even begin to build.</p> <p>Ideas are welcome:)</p>
    singulars
    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.
 

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