我正在尝试运行我的代码,其中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.dll和mscorlib = 2.0.0.0。
SomePath\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll)时,它为什么引用较早版本的mscorlib(location:SomePath\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies)。SomePath\Microsoft VisualStudio14.0\Common7\IDE\PrivateAssemblies中。为什么不在后面的位置搜索?
发布于 2017-04-19 23:10:53
我实际上不知道为什么,但是我只是在我的项目引用中添加了Microsoft.VisualStudio.TeamSystem.Licensing,一切都运行得很好。
https://stackoverflow.com/questions/43503930
复制相似问题