I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product.
To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile.
Everything works fine here and the custom class compiles. I can drop the DLL produced into the product and everything works fine.
However, this product has several versions (minor versions, service packs). I would like to distribute this DLL to others but I'm finding the DLL must match perfectly the version of the product. If there isn't a perfect match, then the following error occurs:
Could not load file or assembly 'Product.Web.UI, Version=3.6.1920.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
How do I produce a DLL that isn't picky about the version reference?