I've got a new project which uses Framework v3.5, but I can't seem to
get it to use that framework's csc.exe file in the msbuild call.

      <!-- MSBuild task -->
      <msbuild>
        <executable>C:\WINDOWS\Microsoft.NET\Framework
\v3.5\MSBuild.exe</executable>
        <workingDirectory>D:\Integration\Source\Code\CodeTrunk
\WSOD1.5\Web\Clients\Products\Research\DeShaw\BrokerVote</
workingDirectory>
 
<projectFile>WSOD.Web.Clients.Products.Research.DeShaw.BrokerVote.csproj.msbuild</
projectFile>
        <buildArgs>/v:normal /noconlog /
p:Configuration=Release;Enviroment=Development</buildArgs>
        <targets></targets>
        <timeout>60</timeout>
        <logger>C:\Program Files\CruiseControl.NET.1.3\webdashboard\bin
\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
      </msbuild>


But when I run cc.net, it gives an error that comes from the command

w\BrokerVote>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /
noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /
reference:C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\System.Configuration.dll /reference:"C:\Program Files
\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" (etc)

So in some parts it's using v3.5, but in others it's using 2.0.50727.
And the main problem seems to be the version of CSC.EXE it's using,
since I can copy the command line from the log, change the version to
v3.5, and it works fine. Otherwise, it errors out.

So how do I get it to recognize that it's supposed to use the command
from v3.5????

Thanks for any help with this!

Reply via email to