Using Multiple Languages in Add-ins

 < Free Open Study > 

Selecting the Automation Methodology

Before I go into the use of multiple languages in add-ins, I want to look at the automation methods that I have discussed and provide you with a matrix for determining which methodology to use.

There are basically three methods for automating functionality in the IDE: macros, add-ins, and wizards. The method that you should consider using can be determined by the answers to one or more of the following questions:

  • Is the code for your use only, or do you want to distribute it to others? If you need to distribute the code, you can use a macro without setup or registration by just exporting your macros. If you need to distribute a compiled application, you must use an add-in or a wizard. Add-ins and wizards protect your code, but you will need to have a deployment method.

  • What language do you want to use for automation development? If you want to stick with Visual Basic, you can create macros, add-ins, or wizards. If you want to use other languages, you can create add-ins or wizards. Macros must be written in Visual Basic.

  • Do you need to prompt the user for input? If no input is required, a macro or add-in can be used. If you need a small amount of input, a macro, addin, or wizard will work. If a large or complex input is required, a wizard may be the best choice.

  • What is the level of complexity of the automation task? If the task is simple, amacro is the easiest way to do it. If the automation task is complicated, an add-in or a wizard may be appropriate.

  • How do you want the user to start the automation process? If you want to provide a menu or command bar user interface, you can use an add-in. A keyboard shortcut or the Macro Explorer can start a macro. If you are adding a new project or new item to a project, a wizard is probably the best way.

  • What is the lifetime of your application? If you just want to use it today, use amacro if possible. For the long term, any of the three methods may be appropriate.

  • What functionality are you developing? If you are automating a task in the IDE, then you can use macros, add-ins, or wizards. If you need to create a custom tool window, an add-in will support your development.

 < Free Open Study > 

Writing Add-Ins for Visual Studio  .NET
Writing Add-Ins for Visual Studio .NET
ISBN: 1590590260
EAN: 2147483647
Year: 2002
Pages: 172
Authors: Les Smith © 2008-2017.
If you may any questions please contact us: