我们有两台构建机器。最近,我们将项目从 vs2005 迁移到了 vs2010。但问题是其中一台机器在构建过程中出现错误。另一台机器运行良好,但只有一台机器显示错误。机器之间的差异是操作系统和计算机规格。运行良好的机器安装的是windows server 2003,另一台是windows7。
错误信息是
unhandled exception: System.NullReferenceException:
Microsoft.VisualStudio.Shell.ThreadHelper.InvokeOnUIThread(InvokableBase invokable)
Microsoft.VisualStudio.Shell.ThreadHelper.Invoke(Action action)Microsoft.VisualStudio.Project.VS.Implementation.VSShellServices.InvokeOnUIThread(Action method)
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Action method)
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCConfigBuildJob.BuildCompleted(BuildSubmission ar)
Microsoft.VisualStudio.Project.Contracts.Implementation.BuildProjectBase.BuildCompletedCallbackManager.BuildCompleted(BuildSubmission buildSubmission)
Microsoft.Build.Execution.BuildSubmission.<CheckForCompletion>b__0(Object state)
System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
System.Threading.ThreadPoolWorkQueue.Dispatch()
System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
奇怪的是,当我在发生错误的机器上的命令行中运行构建项目时,它运行良好。机器在 ccnet 启动时只是显示错误。我已经在所有机器上安装了最新版本的 ccnet。有没有人遇到过这样的问题?