【发布时间】:2021-07-09 10:59:05
【问题描述】:
我在 Windows Server 2012 R2 上使用 Chocolatey 安装了 git-tfs。当我尝试通过键入“git tfs --version”来检查 git tfs 是否安装正确时,我收到以下错误:
Unable to load one or more of the requested types. Retrieve LoaderExceptions for more information
我检查了创建的日志文件,它显示的是这样的:
[Debug] System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at GitTfs.Program.DoCustomConfiguration(CustomConfigurationExpression initializer)
at GitTfs.Program.Initialize(CustomConfigurationExpression initializer)
at StrucutreMap.Container..ctor(Action`1 action)
at GitTfs.Program.Main(String[] args)
我真的很想在这里得到一些帮助。我在这里错过了什么?
【问题讨论】:
-
你在powershell中说。它与
cmd一起工作吗?因为它似乎没有链接到powershell。哪个版本的`git-tfs?最后一个?还有.net fwk?也许您可以尝试 github 上的最后一个:github.com/git-tfs/git-tfs/releases 或以前的一个?最好在此处报告这些调查的问题和结果:github.com/git-tfs/git-tfs/issues -
@Philippe 不,它也不适用于
cmd。我使用的是最新的 v0.32.0 -
@Aithorusa 我从github.com/git-tfs/git-tfs/releases 下载了 GitTfs-0.32.0.zip。然后,压缩包并将文件夹添加到环境变量中。之后,它在我的 Win Server 2012R2 上运行良好。 (这是我新创建的服务器,我只额外安装了 git 和 Visual Studio 2019)也请查看Prerequisites。您可以尝试用这种方式重新安装。
-
@WalterQian-MSFT 我在虚拟机上运行它。我再次从头开始,现在它正在工作。重新安装了 .NET 框架、Visual Studio 2019 和 Git。谢谢。
-
@Aithorusa 很高兴知道它现在可以工作了????我总结了您的评论并添加了答案。您可以标记它,这也将帮助社区中的其他人。
标签: git powershell tfs