This project has moved and is read-only. For the latest updates, please go here.

Versioning imported parts

Sep 9, 2008 at 7:25 PM
Hi there,

How the parts versioning can be handled using MEF? Is it supposed to be implemented in the scope of MEF or should be done ourselves using metadata attributes etc?

Thanks, Leonid
Sep 9, 2008 at 10:53 PM
We have support for contract adapters, which allow you to convert from one contract to another.  You can use this if the contract for a component changes but you still want to support parts written for the old contract.  An example of using this (although not for versioning purposes) is in the Meftris sample under Meftris.Shapes\Library\PictureShape.cs.

I'm not sure if that's what you are looking for, though.  If you just want to display the version of a part then the metadata route is probably the way to go.