I installed git-tfs using chocolatey on a Windows Server 2012 R2. When I try to check if git tfs installed correctly by typing "git tfs --version", I get the following error:
Unable to load one or more of the requested types. Retrieve LoaderExceptions for more information
I checked the log files that were created and this is what it shows:
[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)
I'd really like some help here. What am I missing here?
According to the document of the git-tfs, we need .NET 4.6.2 and the 2012 or 2013 version of Team Explorer installed (or Visual Studio) depending on the version of TFS you want to target.
There are some changes in the latest version( v0.32.0 ) of git-tfs:
We can try to reinstall .NET framework, Visual Studio 2019 and Git if we have any issues when installing git-tfs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.