TFS命令行崩溃

时间:2012-04-04 01:14:42

标签: command-line tfs crash

我正在尝试设置一个构建脚本,其中包含检查到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人员重新创建它时,一切都很完美。为了后代,我试图在旧服务器和新服务器之间找到一些区别,但我没有找到任何东西。

0 个答案:

没有答案
相关问题