This is a migrated thread and some comments may be shown as answers.

Class Library and Web Project Telerik DLL Versions Conflicting

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ATS
Top achievements
Rank 1
ATS asked on 22 Sep 2009, 06:13 PM
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!

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 25 Sep 2009, 08:47 AM
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,
Veli
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.
Tags
General Discussions
Asked by
ATS
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or