Link against non specific version of an assembly?
I'm getting an error like this in an application,
Could not load file or assembly 'MySql.Data, Version=6.2.2.0, Culture=neutral,PublicKeyToken=c5687fc889699c44d' or one of its depedencies. The located assembly's manifest defenition does not match the assembly reference.
Which is expected, as this installation happened to have a prev开发者_如何学Goious version of the .dll installed.
Can I tell(in Vs2008) to link to this MySQL.data.dll and not care about its version ? The MYSQL.data.dll reference within the project has a property named "Specific Version", although setting it to false yields no difference.
I'm well aware of the implication if this .dll is binary incompatible with the one required.
SpecificVersion can't solve your problem, that only works at compile time. You ought to rebuild your program for a minimum of surprises. Or you can use the <bindingRedirect>
element in the .exe.config file.
Yes, you can. Select the referenced dll, and in the property windows set 'specific version' to False.
精彩评论