我有我的.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)
當我使用惡性0.92。如果我使用NAnt .91,一切正常。如何更新我的.build以使用.92?我建立在Win7 64Bit上。
在NAnt .91下使用完全相同的.build文件,使用的外部程序是C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
。請注意框架,而不是Framework64。看起來NAnt .92在選擇plateform='x86'
時使用了錯誤的框架。
這可能更適合作爲NAnt-devel郵件列表上的錯誤報告:http://www.mail-archive.com/nant-developers%40lists.sourceforge.net/ – skolima
我向該列表發送了一封電子郵件,不知道它是否會通過,因爲我沒有註冊。我真的不想得到所有的電子郵件。 – Justin808