Difference between AppDomain.GetAssemblies and BuildManager.GetReferencedAssemblies
问题 Just wanted to know if there is any difference between the two, in the context of a fully trust asp.net mvc 2 application. 回答1: The .NET Framework defers loading assemblies into the current AppDomain until they're needed. For example, if you call into a third-party library only from SomeMethod(), the third-party DLL normally won't be loaded until the first time SomeMethod() runs. AppDomain.GetAssemblies() gives you all assemblies which have already been loaded into the current AppDomain.