0

new to C# (and programming in general) and have a question about Resolvers:

What does it mean to Resolve an assembly (i.e. a .dll file)? Basically I am trying to integrate our custom-made CRM with Sage and am told that before I can connect to the Sage DB I need to locate a particular assembly and resolve it BEFORE I resolve all the other relevant assemblies. I know that is vague but it's a fairly general question so I'm hoping someone can help me out!

Please note this is in C#.

4

1 回答 1

1

解析程序集意味着定位和加载它。如果程序集没有强签名,则解决它的步骤是:

  • 尝试加载 Appbase 目录(托管应用程序的位置)
  • 尝试加载与程序集名称相同的 Appbase 的子项(例如 Appbase/acme/acme.dll)
  • 尝试从 assembly.exe.config 中指定的其他目录加载(xcopy 部署)

如果程序集是强签名的,CLR 也会在 GAC 中检查并检查是否有指定程序集的代码库提示。

于 2014-07-28T08:22:03.533 回答