无法加载程序集,因为 ddconfig version=2.0.0.0 不存在

cannot load assembly as ddconfig version=2.0.0.0 is not present

我正在尝试 运行 我的代码,其中 Servicefactory 初始化所有程序集。我收到以下错误:

Some assemblies could not be loaded. Make sure you don't have invalid binding redirects. If you know there are no breaking changes you can use binding redirects to redirect the following unfound assemblies to the versions you have in  your project.  Assemblies referenced that are unloadable:  Microsoft.VisualStudio.TeamSystem.Licensing, Version=14.0.0.0

经过一些调查,我发现 Microsoft.VisualStudio.TeamSystem.Licensing 引用了 ddconfig.dllmscorlib = 2.0.0.0

为什么不在后面的位置搜索?

其实我也不知道为什么,但是我只是在我的项目引用中添加了 Microsoft.VisualStudio.TeamSystem.Licensing 并且一切 运行 都很好。