İlerleyen zamanlarda size o dll'in aynı isimli ama farklı bir versiyonu verilirse ; yenisini projede kullanabilmek için önceden referans gösterdiğiniz dll'i silmeli ve yeni dll'i Add Reference yaparak referans olarak eklemelisiniz.
Diğer seçeneğiniz ise Visual Studio'da projenize referans olarak eklediğiniz dll'in özelliklerinde SpecificVersion'ı false olarak seçmek. Böylece projenize birkaç aynı isimde dll atsanız bile, proje en güncel versiyon olan dll'i bulup kullanacaktır. Tabi unutmamak lazım ki bu build sürenizi arttırabilir, çünkü artık projeniz siz pathini vermiş olsanız bile , o dll'in en son versiyonunu bulmak için farklı yerlerde dll'inizi avlama :D arayışına girecek.
-----------------------------------------------------------------------------------------------------------
If, at a later time, you're given a new dll (say 1.0.1.0), then you will have to remove the old dll reference and add the new reference. This is because the project is specifically looking for 1.0.0.0 when you have a new version 1.0.1.0.
The alternative to this is to set the SpecificVersion to false, which tells the project to find the latest available dll and use that one. The problem with this is that the project is now required to "hunt" in various places for the dll you've referenced, which can increase your build time. It will do this even though it knows the path of the dll you've referenced. I'm not sure if this is a bug or if this is done by design. It might be checking to see if there are any newer dlls besides the one you've referenced (perhaps in the GAC or elsewhere).
----------------------------------------------------------------------------------------------------------
It's a compile-time property!
One of the most important things to know is that "Specific Version" is a property that takes effect at compile-time and not at runtime.
What is it all about?
When a project is built, the project's assembly references need to be resolved in order to find the physical assemblies that the build system should use. If the "Specific Version" check is performed (see section "When is "Specific Version" checked?"), it affects the outcome of the assembly resolution process:
* The build system locates a physical assembly that it can potentially use
* The build system compares the physical assembly's version to the assembly version stored in the .csproj file for the assembly reference
* If the two assembly versions are exactly the same, the resolution process succeeds and the physical assembly found is used for the build
* If the two assembly versions do not match, the physical assembly is discarded and the resolution process continues by locating the next potential assembly
* If no more potential physical assemblies can be located, the resolution process fails. This results in a compiler warning (warning MSB3245) that tells you that the reference could not be resolved.
* Interestingly enough, the build then continues! If the code has no actual references to the assembly, the build succeeds (with the previously mentioned warning). If the code has references, the build fails with an error that looks as if the code were using unknown types or namespaces. The only indication why the build really failed is the warning MSB3245. Order in which assemblies are resolved
The order in which the assembly resolution process locates potential assemblies:
1. The assembly referenced by the
<Reference Include="Foo, Version=1.2.3.4, Culture=neutral,
processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>..\..\Bar\Foo.dll</HintPath>
</Reference>
<Reference Include="Foo">
[...]
| Version information
| Present Not present
----------------------------+------------------------------
<SpecificVersion> |
- Present, has value True | Yes (1) Yes (check always fails) (2)
- Present, has value False | No (3) No (4)
- Not present | Yes (5) No (6)
Side-effects on "Copy local"
Reference material