Class Library and Web Project Telerik DLL Versions Conflicting

2 posts, 0 answers
  1. JT
    JT avatar
    49 posts
    Member since:
    Mar 2007

    Posted 22 Sep 2009 Link to this post

    I'm not even sure what to title this one, but I could use anyone's help in the community :)

    I've written some custom controls that take advantage of the Telerik greatness. As such, my class library project references (what was at the time) the latest Telerik dlls. In this case, it's using Telerik.Web.UI 2009.1.311.35. When I compile my class library, I get a nice little dll. I have dropped that into a number of web projects I'm working on, and it's fine as long as the Telerik.Web.UI dll is in the web project's /bin directory along with it.

    Recently, I've upgraded one of the web projects to the latest Telerik dll, since it uses the Telerik controls on it's own as well as my custom controls. Lo and behold, the class library is now freaking out that it can't find the 2009.1.311.35 dll version for it's own use. I can't have the two living side-by-side in the /bin directory, nor do I want to.

    How do I get around this? I've tried getting the 2009.1.311 dll to compile into my custom class dll, so it isn't dependent on the correct dll existing along side it in the /bin directory of the web project. That didn't work correctly either. I can't figure out how to get my class library to not care about a particular version, so that it would use whatever Telerik version is in the web project's bin.

    Anyone have any tips? What am I doing wrong!

    Thanks so much, guys!
  2. Veli
    Veli avatar
    2002 posts

    Posted 25 Sep 2009 Link to this post

    Hello JT,

    The reason for this is that in your custom library project you reference a particular assembly. This assembly is referenced by specific version. Therefore, you always get to reference a particular version of the assembly. Try setting Specific Version to False in the properties window for the Reference to Telerik.Web.UI.dll in VS. Compiling your custom library should now give you version independence, as Telerik.Web.UI.dll is now referenced by name only. Check it out.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top