我正在尝试使用 nant 构建城堡项目并获得以下结尾的输出:
common.compile-dll:
[csc] Compiling 92 files to 'C:\code\OSS\castle\build\net-3.5\release\Castle.Core.dll'.
[csc] error CS0006: Metadata file 'System.Core.dll' could not be found
[csc] error CS0006: Metadata file 'System.Data.DataSetExtensions.dll' could not be found
[csc] error CS0006: Metadata file 'System.Data.Linq.dll' could not be found
[csc] error CS0006: Metadata file 'System.ServiceModel.Web.dll' could not be found
[csc] error CS0006: Metadata file 'System.Web.Extensions.Design.dll' could not be found
[csc] error CS0006: Metadata file 'System.Web.Extensions.dll' could not be found
[csc] error CS0006: Metadata file 'System.Xml.Linq.dll' could not be found
BUILD FAILED
C:\code\OSS\castle\common-project.xml(127,5):
External Program Failed: c:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe (return code was 1)
Total time: 1.1 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.
现在也许我可以弄清楚这一点,或者至少有一个更合理的问题要问我是否知道构建日志的位置,它通常会去哪里?将 -l 选项添加到 nant 命令会导致日志包含与屏幕输出完全相同的消息。有人知道吗?
(有趣的是,这与之前提出的一个问题完全相同,但没有回应就被删除了)