Question

What do i need? I wrote some BizTalk Functoid and BizTalk Pipeline Components. But before you can use them in a mapping (Functoid) or in a pipeline (Pipeline Components) you need to copy it to a specific folder.

Copy it to the folder is not a problem. The problem i have is to get the target path. I wrote an addin. So you can click on a menu item. You also selected the project of the functoid. So when you now click on the menu item. It should get the targetPath of that assembly. It needs to copy the "dll" file to my other folder.

How can i get that "TargetFolder" programmatically?

Also how can i register the assembly to the GAC? In a batfile i use

"gacutil /i 'path of assembly' /f"

With the /f parameter we force to overwrite the assembly. In c# you can't force that. Do you need then first try to remove the assembly and register it to the GAC?

Was it helpful?

Solution 3

I solved the problem by first check if the assembly exists in the GAC. :)

OTHER TIPS

Try Copying the Appropriate Gacutil.exe and Gacutil.exe.config from the following C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin and place them in your .bat folder.

and programmatically:

refer this :

http://blogs.msdn.com/b/helloworld/archive/2008/09/22/how-to-install-assemblies-to-the-gac-programmatically.aspx

Hope this Helps

Thanks, Nihar Malali

Custom Pipeline Components

Custom BizTalk Pipeline Components need to be deployed to the C:\Program Files (x86)\Microsoft BizTalk Server 2010\Pipeline Components\ directory for them to be available in Visual Studio from the Pipeline Toolbox.

However, to get a Custom Pipeline Component into the Toolbox you have to jump through a couple of additional hoops. You need to right-click anywhere on the Toolbox and select 'Choose Items' - this will load the 'Choose Toolbox Items'. Navigate to 'BizTalk Pipeline Components' and so long as you have implemented the necessary component interfaces, you should see your custom component listed here (see screenshot below). Tick the checkbox corresponding to your component and select 'Ok'. Your custom component will now be displayed in the Toolbox. If you drag the component onto your Receive or Send Pipeline in Visual Studio, a reference to your Assembly will be created in the relevant project.

Add BizTalk Custom Pipeline Components and Mapper Functoids Dialog

You will need to GAC the Custom Pipeline Component Assembly, however that is simply a matter of drag and drop into the GAC through Windows Explorer. You might also want to check out http://msdn.microsoft.com/en-us/library/aa578035.aspx which has some good detail on BizTalk deployment options, including GAC-ing assemblies.

Custom Mapper Funtoids

Custom Functoids are used in a similar way - follow the instructions above for adding a component to the Toolbox, but select select 'BizTalk Mapper Funtoids' instead. You will also need to GAC the assembly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top