<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="AnotherLib" publicKeyToken="null" culture="neutral"/> <codeBase Version="1.0.0.0" href="file:///D:\tmp\Probing Test\Probing Test\bin\Debug\V1\AnotherLib.dll"/> </dependentAssembly> </assemblyBinding> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="AnotherLib" publicKeyToken="null" culture="neutral"/> <codeBase version="2.0.0.0" href="file:///D:\tmp\Probing Test\Probing Test\bin\Debug\V2\AnotherLib.dll"/> </dependentAssembly> </assemblyBinding>Trying to get an instance of a class in the assembly I try getting the Type by:
Type t1 = Type.GetType("AnotherLib.Class1, AnotherLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); Type t2 = Type.GetType("AnotherLib.Class1, AnotherLib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null");but the Assembly for both types is version 1.0.0.0. Anyone know why this doesn't work. FWIW a similar pattern when dealing with strong named assemblies is locations outside the AppBase works fine.....