我有我的 .build 设置
<csc platform='x86' target='winexe' output='${validate.file}' debug='${debug}' warnaserror='true'>
但我明白了
[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)
当我使用 NAnt .92 时。如果我使用 NAnt .91 一切正常。如何更新我的 .build 以使用 .92?我正在构建 Win7 64 位。
在具有完全相同的 .build 文件的 NAnt .91 下,使用的外部程序是C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
. 请注意框架,而不是 Framework64。看起来 NAnt .92plateform='x86'
选择时使用了错误的框架。