我有一个生成的 C# 项目,some.dll
它引用了一堆 DLL,其中一个System.ComponentModel.Composition.dll
位于C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
.
我some.dll
在 Windows XP 系统上构建和部署。使用它的应用程序some.dll
运行正常。但是当我尝试在 Windows XP 系统System.ComponentModel.Composition.dll
下C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
查找时,我找不到它。
我只想了解应用程序如何正常运行。
我想了解它的原因是,我将它构建some.dll
在不同的系统中并部署在另一个 Windows XP 系统上。当我尝试启动应用程序时,应用程序崩溃并出现错误:
Exception ::Could not load file or assembly 'System.ComponentModel.Composition.resources, Version=4.0.0.0, Culture=en-NZ, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.