Yossi Dahan [BizTalk]


Friday, September 22, 2006

Wish list: adding xslt files to BizTalk projects

As you probably know by now, I use xslt scripts extensibly in my maps.
This is simple, quick and powerful once you get used to it.

What is not so simple and quick is adding the xslt file to the BizTalk project because Visual Studio will not let you add xslt files to a BizTalk project.
What I used to do is create a new xslt file, drop it in the project's folder and then use "Add existing item" to add it to the project.

Today I finally took the 5 minutes it takes to sort this out and modifed the vsdir file to include xslt files in the BizTalk project's Add New Item dialog.

To achieve this simply go to the "Program Files\Microsoft BizTalk Server 2006\Developer Tools\BizTalkProjectItems\Map Files" and add to the file BTSMaps.vsdir something like the following line - "..\xsltfile.xsl{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}#1429770#142980#68170#14299"

Then simply create xsltfile.xsl in the folder above and you're set to go.

Oh, and one other thing - is it too much to ask for the Visual Studio guys and the BizTalk guys to exchange a couple of emails and agree on the extension for xslt files?

At the moment Visual studio will create an xslt file with the extension ".xslt" while the BizTalk mapper's open file dialog looks for files with an ".xsl" extension.

Am I really the only one annoyed by this?


Post a Comment

<< Home