JJS JJS - 1 year ago 97
C# Question

are assembly bindings ignored for PublicKeyToken=null?

I have the following in my


<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin2" />
<assemblyIdentity name="Foo" culture="neutral" publicKeyToken="null">
<bindingRedirect oldVersion="" newVersion="3.0.4497.27619" />

Fusion logging tells me that it's not looking in
for my assembly.

LOG: Initial PrivatePath = NULL (and it never searches in

Is this a problem with not having a

Answer Source

Yes, they are ignored for assemblies that are not strong named (have a publicKeyToken) since the CLR ignores version numbers for these assemblies.

See this MSDN page for more information.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download