It appears to be building off of the 2.0 csc.exe instead of the 3.5 csc.exe.  
Here's my target:
  <target name="build" depends="getLatest">
    <property name="nant.settings.currentframework" value="net-3.5"/>
    <solution configuration="release" verbose="true" > 
      <projects>
         <include name="${build.dir}\MyProject\MyProject.csproj" />
      </projects>
      <referenceprojects>
         <includes 
name="${build.dir}\MyProjectReference\MyProjectReference.csproj" />
      </referenceprojects>
      <assemblyfolders>
        <include name="D:\Program Files\Microsoft Visual Studio 
8\Common7\IDE\PublicAssemblies" />
      </assemblyfolders>
    </solution>
  </target>
Here's my output in the log:
[solution] C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig 
/unsafe- /checked- /nowarn:1701,1702 /nostdlib- /errorreport:prompt /warn:4 
/baseaddress:285212672 /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" 
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll 
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll 
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug- 
/filealign:4096 /optimize+ /out:obj\release\MyProject.dll /target:library 
/warnaserror- AssemblyInfo.cs myFile1.cs myFile2.cs myFile3.cs myFile4.cs
I never see it switch over to the proper framework and it definitely uses the 
wrong csc...  The only thing I see it using for 3.5 is system.core.dll.  Seems 
I could hack the nant.exe.config file to get this to work.  Any help?
Thanks,
Eric


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to