1

我正在尝试设置一个包含签入 TFS 2010 的代码的构建脚本。在 IDE 中一切正常,但是每次我尝试访问它时命令行函数都会崩溃。具体来说,“tf workspace”和“tf workspaces”工作得很好,但是“tf history”、“tf get”和其他任何可能有用的东西都会创建一个未处理的异常。无论我如何格式化这些命令,程序仍然崩溃。我在互联网上到处寻找解决这个问题的关键,但无济于事。这让我发疯了。这是一个示例,从“Visual Studio 命令提示符”运行:

tf history * /version:T
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at Microsoft.TeamFoundation.VersionControl.Controls.DialogHistory.set_Workspace(Workspace value)
at Microsoft.TeamFoundation.VersionControl.CommandLine.CommandHistory.Run()
at Microsoft.TeamFoundation.VersionControl.CommandLine.VersionControlCommandLine.RunCommand(String commandName, String[] args, Boolean& showExitCode)
at Microsoft.TeamFoundation.Client.CommandLine.RunCommand(String[] args)
at Microsoft.TeamFoundation.Client.CommandLine.Run(String[]& args)
at Microsoft.TeamFoundation.VersionControl.CommandLine.VersionControlCommandLine.Main(String[] args)

如果命令的使用完全错误,我深表歉意,但鉴于我输入的所有内容都会使其崩溃,我没有参考框架。

更新:

[我最初发布了这条评论,但由于版主认为它更像是一个“更新”而不是一个答案,它被删除了。]

谢谢大家的提示。我发布此消息的那天,我们的 TFS 服务器崩溃了,必须重新创建。我没有更改任何代码或工作区。当我们的 IT 人员重新创建它时,一切正常。为了后代,我试图找到新旧服务器之间的一些区别,但我没有发现任何东西。

4

0 回答 0