Don,
After a night sleeping on it. I'm not going to pursue the Version sniffer method. Way too much hassle for a backward compatibility plugin. If anyone needs a revision Plugin it would be easier to just alter the Startup and re-compile with a slightly new name.
It would also be easier if Plugin coders identified which version they created the Plugin for by using the Assembly Information and matching it to the version of Vixen they are using while creating the Plugin.
As for the ListBox, I'm not really sure if thats what I need or really want. I may be too far ahead of myself in that area.
I need to make sure this plugin will do what it needs to before I start adding bells and whistles..
Aurbo - I really don't think there's any remotely easy way to make a plugin work for 2.5 and 2.1 - When you reference Vixen.exe you're referencing a specific version of that. Vixen checks each DLL to see if it is a legitimate plugin by checking to see that your class implements IEventDrivenOutputPlugin. However, IEventDrivenOutputPlugin is different for the different versions of Vixen. So unless there is a way to implement two interfaces with the same name, but from different assembly versions, I think we're out of luck.
However, I have a couple projects that I'm doing for 2.1 and 2.5 and I'm doing it with the same base code. Check out this post:
http://doityourselfchristmas.com/forums/showthread.php?t=10077
While we're on the topic, don't compare versions by strings. Check out the System.Version class. You can compare two Version instances with the standard arithmetic operators ( ==, >, >=, <, <= ) and not have to worry about build, revision, etc.
Aurbo99 wrote:It would also be easier if Plugin coders identified which version they created the Plugin for by using the Assembly Information and matching it to the version of Vixen they are using while creating the Plugin.
You're correct, and this is exactly what I do. However, I match the major and minor versions, but am free to increment the build and revision numbers for myself. This follows the convention that build- and revison-number changes are considered non-breaking. Where as data from one major+minor version of a program is not considered as required to work with a new major+minor version. (eg. the difference between IEventDrivenOutputPlugin in Vixen 2.1 and 2.5)

