joelspadin / BraceCompleter

Visual Studio extension to automatically insert closing braces.
10 stars 0 forks source link

why use package but not addin #5

Open warmhug opened 12 years ago

warmhug commented 12 years ago

hello,I'm glad to see your wonderful code. just have a small question : why use package but not addin . I think using addin may be more simple ?

joelspadin commented 12 years ago

I'm not sure how an add-in works or how it differs from a MEF package. Are there any materials online explaining how to make add-ins?

More importantly, what would I gain from using an add-in instead of a MEF package?

joelspadin commented 12 years ago

After some research, this is what I found. Please correct me if any of this is wrong:

Add-ins were the original method of writing extensions for older versions of Visual Studio. Packages using MEF are new as of VS 2010 and will continue to be supported in future versions. Using MEF avoids the need to use COM (but does not prohibit it obviously, since this extension does use COM to read settings) which, in my opinion, greatly simplifies building an extension.