I've got my .build setup
<csc platform='x86' target='winexe' output='${validate.file}' debug='${debug}' warnaserror='true'>
but I get
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'System.Data.dll' targets a different processor
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'System.Data.OracleClient.dll' targets a different processor
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'System.EnterpriseServices.dll' targets a different processor
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'System.Transactions.dll' targets a different processor
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'System.Web.dll' targets a different processor
[csc] error CS1607: Warning as Error: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor
External Program Failed: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe (return code was 1)
when I use NAnt .92. If I use NAnt .91 everything works. How do I update my .build to work with .92? I'm building on Win7 64Bit.
Under NAnt .91 with the exact same .build file, the external program used is C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe. Note the Framework, not Framework64. It looks like NAnt .92 uses the wrong framework when plateform='x86' is selected.