In my class library, I am referencing DLL's from my website's bin folder. Sometimes the DLL's in the bin folders get updated, then I get the error of:
Could not load file or assembly 'MyAssembly.Sub, Version=3.7.2096.3, Culture=neutral,
PublicKeyToken=dfeaee3f6978ac79' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)
How do I disregard the version number so that the DLL's can get updated without the application looking for a specific version number?? Can't just look for the namespace only?
This is what the reference looks like in my .csproj file:
<Reference Include="MyAssembly.Sub, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee3f6978ac79, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\SomeWebsite\bin\MyAssembly.Sub.dll</HintPath>
<Private>False</Private>
</Reference>