Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Blogs / Navigate Into Success / Control Add-ins and Version...

Control Add-ins and Version Compatibility–Update

Yesterday I posted a quick tip, which quickly got some comments about it being wrong. Since I know people who commented were unlikely to say something incorrect, I went to check on, because I myself experienced difficulties that made me write that post.

So, I analyzed to see who’s right and who’s wrong, or better yet – to see why different people might get different results.

Here’s the results.

So, I stand corrected. What I wrote is not completely true. Depending on what exactly your control does, my post’s accuracy ranges from absolutely wrong, to somewhat wrong, to true. So, here’s the thing.

When your .NET control add-ins (and it’s absolutely only about .NET control add-ins, what I said about JavaScript control add-ins, my original post is correct) if you only use the OnControlAddIn event, and your control add-in does not use any of the specific functionality of the assembly you reference, then your control is going to be absolutely forward compatible, from version 6.1 (2009 SP1) all the way to 8.0 (2015).

However, backward compatibility does not work. Controls built for 2015, won’t work in 2013 R2, 2013, 2009 R2, or 2009 SP1. Likewise, controls built for 2013 R2, won’t work in 2013, 2009 R2, or 2009 SP1. Also, controls built for 2013, won’t work in 2009 R2, or 2009 SP1.

The only version which is fully backwards compatible is 2009 R2. Controls built for 2009 R2 will work with 2009 SP1.

The reason for this is simple, 2009 SP1 and 2009 R2 use the same assembly version (1.3.0.0) whereas all newer versions declare a new assembly version (7.0.0.0, 7.1.0.0, and 8.0.0.0 respectively). Now, maybe there are some tricks that may make even this work, but I didn’t manage to figure them out. I attempted copying the newer version of assemblies together with the control add-in assemblies, but it didn’t make any difference either.

So, insofar as backward compatibility is concerned, my original post is correct. However, when forward compatibility is concerned, my post is wrong.

Thanks to Johannes and Mark for pointing out the issue.


Read this post at its original location at http://vjeko.com/blog/control-add-ins-and-version-compatibilityupdate, or visit the original blog at http://vjeko.com. 5e33c5f6cb90c441bd1f23d5b9eeca34

The post Control Add-ins and Version Compatibility–Update appeared first on Vjeko.com.


This was originally posted here.

Comments

*This post is locked for comments