【发布时间】:2009-03-11 16:05:30
【问题描述】:
我正在使用 TeamCity 管理我的一个项目,但它似乎无法在 Windows Server 2008 上与 Nant 一起正常工作。我可以做些什么来解决这个问题?
在安装 ASP.NET 2.0 Framework SDK 之前:
[10:21:07]: BUILD FAILED
[10:21:07]: Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.
[10:21:07]: Property evaluation failed.
[10:21:07]: Expression: ${path::combine(sdkInstallRoot, 'bin')}
[10:21:07]: ^^^^^^^^^^^^^^
[10:21:07]: Property 'sdkInstallRoot' has not been set.
之后:
[11:48:16]: Target framework: Microsoft .NET Framework 2.0
[11:48:16]: Target(s) specified: test
[11:48:16]: [property] Target framework changed to "Microsoft .NET Framework 3.5".
[11:48:16]: BUILD FAILED
[11:48:16]: INTERNAL ERROR
[11:48:16]: System.NullReferenceException: Object reference not set to an instance of an object.
[11:48:16]: at NAnt.Core.FrameworkInfo.get_Version()
[11:48:16]: at NAnt.Core.Project.UpdateTargetFrameworkProperties()
[11:48:16]: at NAnt.Core.Tasks.PropertyTask.ExecuteTask()
[11:48:16]: at NAnt.Core.Task.Execute()
[11:48:16]: at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
[11:48:16]: at NAnt.Core.Project.Execute()
[11:48:16]: at NAnt.Core.Project.Run()
[11:48:16]: Please send bug report to nant-developers@lists.sourceforge.net.
[11:48:16]: Total time: 0.1 seconds.
[11:48:16]: Process exited with code 1
[11:48:16]: Build finished
【问题讨论】:
-
我们可以看看 NAnt 脚本吗?