Suzanne Cook's .NET CLR Notes

Common Language Runtime Developer

  • Suzanne Cook's .NET CLR Notes

    Using Type.GetType(typeName)

    If no assembly is specified, Type.GetType() will only look in the calling assembly and then mscorlib.dll for the type. For it to look in any other assembly, you need to give the Type.AssemblyQualifiedName for the type. For example: Type.GetType("System...
  • Suzanne Cook's .NET CLR Notes

    When to Change File/Assembly Versions

    First of all, file versions and assembly versions need not coincide with each other. I recommend that file versions change with each build. But, don’t change assembly versions with each build just so that you can tell the difference between two versions...
  • Suzanne Cook's .NET CLR Notes

    Choosing a Binding Context

    There are three 'contexts' for assembly binding: Load context In general, if the assembly was found by probing in the GAC, a host assembly store (if hosted), or the ApplicationBase / PrivateBinPaths of the AppDomain, the assembly will be loaded...
  • Suzanne Cook's .NET CLR Notes

    Assembly Display Names

    An assembly display name should include the assembly simple name, version, culture and public key token. The assembly simple name is usually the file name of the assembly without the extension (“.dll” or “.exe”). For example, the assembly display name...
  • Suzanne Cook's .NET CLR Notes

    Debugging Assembly Loading Failures

    • 108 Comments're seeing a FileNotFoundException, FileLoadException, BadImageFormatException or you suspect an assembly loading failure? Try the steps below to start your debugging process. First, get the Message property from the exception. If the exception...
Page 2 of 2 (30 items) 12