Adding and Removing Custom Functoids from the Visual Studio Toolbox
This topic describes how to add custom functoids to and remove custom functoids from the Visual Studio Toolbox.
Adding Custom Functoids to Visual Studio
Custom functoids must be added to the Visual Studio Toolbox before they can be used in a map. Use the following procedure to add custom functoids.
To add a custom functoid
Add the functoid to the Visual Studio Toolbox.
Using Windows Explorer, find the assembly that implements your custom functoids.
Copy the assembly to the <BizTalk Server installation folder>\Developer Tools\Mapper Extensions directory. This is where BizTalk Mapper looks for custom functoids.
From a Visual Studio BizTalk project, on the Tools menu, click Choose Toolbox Items.
In the Choose Toolbox items dialog box, click the BizTalk Mapper Functoids tab.
Click Reset, and then click OK. This process may take a few moments.
Your custom functoids should now appear in the Toolbox under tabs matching their category.
- OR -
From a Visual Studio BizTalk project, on the Tools menu, click Choose Toolbox Items.
In the Choose Toolbox items dialog box, click the BizTalk Mapper Functoids tab.
Click Reset, and then click OK.
Note
If your custom functoid does not expose any inline code, make sure its assembly is made available in the global assembly cache.
On the File menu, click Exit to close Visual Studio.
Start Visual Studio Command Prompt.
At the command prompt, type devenv /setup.
Start Microsoft Visual Studio.
The custom functoid(s) should appear in the appropriate tab.
Add the assembly to the global assembly cache. If your assembly contains only inline functoids, then you can skip this step.
Start Visual Studio Command Prompt.
Switch to the folder containing your assembly.
At the command prompt, type gacutil /if <assembly_path >. For example, if your assembly name is FunctoidLibrary.dll, then type gacutil /if FunctoidLibrary.dll.
When you are finished, type exit.
Removing Custom Functoids from Visual Studio
Use the following procedure to remove custom functoids.
To remove a custom functoid
Remove the functoid from the Visual Studio Toolbox.
From a Visual Studio BizTalk project, on the Tools menu, click Choose Toolbox Items.
In the Choose Toolbox items dialog box, click the BizTalk Mapper Functoids tab.
Find the custom functoid in the list, select the Remove check box, and then click OK.
- OR -
While editing a map in a Visual Studio BizTalk project, click the Toolbox tab to bring up the Toolbox Palette.
Click the functoid group containing your custom functoid.
Right-click the functoid you want to remove, and then click Delete or press the delete key.
Remove the functoid assembly from the Developer Tools\Mapper Extensions directory.
Caution
If an assembly contains active functoids, then do not remove it. Doing so will break other maps.
Start Windows Explorer and navigate to the Developer Tools\Mapper Extensions directory of BizTalk Server.
Right-click the assembly containing the removed functoid, and then click Delete to remove the file.
Remove the functoid assembly from the global assembly cache. If your assembly contains only inline functoids, then you can skip this step.
Caution
If an assembly contains active functoids, then do not remove it from the global assembly cache. Doing so will break other maps.
Start Visual Studio Command Prompt.
At the command prompt, type gacutil /u <assembly_display_name>. For example, if your assembly name is FunctoidLibrary.dll, then type gacutil /if FunctoidLibrary.
When you are finished, type exit.