Decouple helper from specific Telerik MVC dll version

Feb 24, 2012 at 9:17 PM
Edited Feb 24, 2012 at 9:25 PM
This discussion based on this issue per Luis' request to get community ideas.

Problem - Upgrading to the latest Telerik MVC Extensions breaks compatibility with the helper. Does the helper need to be tied down to a particular version of the Telerik MVC Assembly?

Luis_Fernando wrote Thu at 2:48 PM
Yes, I had already noticed this problem

I'll build a TelerikMvcExtensions 2012.1.214 compatible version tonight.

On the linkage to a specific TelerikMvcExtensions version, I do not like it too, but I have to confess that I do not know how to make this work with any version. If you can help me with this I would be very grateful.

Possible solution I thought of based on this discussion

1. Create a wrapper assembly for Telerik.Web.Mvc.dll.
2. Replace all references in the helper projects with the wrapper dll.
3. Update all Telerik namespaces (and maybe object name) references in the helper to point to the wrapper assembly
4. When Telerik releases a new dll only a new wrapper needs to be made that references the new Telerik dll. Increment the AssemblyFileVersion of the wrapper but keep the AssemblyVersion the same if the changes are non-breaking. Breaking changes would increment AssemblyVersion of the wrapper and would require a new Helper assembly. This would allow for the wrapper assembly to be used as a drop-in replacement for various Telerik releases as long as the changes are non-breaking.

What does everyone think?  There is probably a better option.