无法加载程序集,因为 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.dll
和 mscorlib = 2.0.0.0
。
首先,当我的机器上有最新版本(loaction:SomePath\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies
)时,为什么它引用旧版本的 mscorlib(位置:SomePath\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll
)。
其次,ddconfig.dll 显然从它搜索的位置丢失了,但它再次出现在位置 SomePath\Microsoft VisualStudio14.0\Common7\IDE\PrivateAssemblies
中。
为什么不在后面的位置搜索?
其实我也不知道为什么,但是我只是在我的项目引用中添加了 Microsoft.VisualStudio.TeamSystem.Licensing 并且一切 运行 都很好。
我正在尝试 运行 我的代码,其中 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
。
首先,当我的机器上有最新版本(loaction:
SomePath\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies
)时,为什么它引用旧版本的 mscorlib(位置:SomePath\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll
)。其次,ddconfig.dll 显然从它搜索的位置丢失了,但它再次出现在位置
SomePath\Microsoft VisualStudio14.0\Common7\IDE\PrivateAssemblies
中。
为什么不在后面的位置搜索?
其实我也不知道为什么,但是我只是在我的项目引用中添加了 Microsoft.VisualStudio.TeamSystem.Licensing 并且一切 运行 都很好。