【发布时间】:2011-12-26 18:35:20
【问题描述】:
我正在使用Mono.Cecil DLL 文件并编写此代码:
AssemblyDefinition sourceAssembly = AssemblyFactory.GetAssembly(assemblyPath);
我的项目没有被编译,因为它无法找到“AssemblyFactory”类。好像这个类根本不存在于 DLL 文件中。我添加了 mono.cecil.dll 文件作为对我的项目的引用。此类是否存在于 DLL 文件之外的某个位置,可能位于 .NET 级别的其他 DLL 文件中?
【问题讨论】:
-
如果您还想了解有关 Mono.Cecil 的任何其他信息,我很乐意在单独的问题中提供帮助。与此同时,这个问题得到了回答。
-
类似于 How to save a changed assembly using Mono.Cecil?(在 Mono.Cecil 的更高版本中不再存在 AssemblyFactory)。
标签: mono.cecil