Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

I made a little mistake the other day which maybe some of you might experience.

I have an MsBuild script which calls BTSTask to add resources to a BizTalk application.  For the destination path I was supplying the value below:

  %BTAD_InstallDir%\Acme.BizTalk.Orchestrations.dll

The result was that when the application was exported to an Msi and then installed on a different server the assemblies were always installed to as follows:

c:\Acme.BizTalk.Orchestrations.dll

I hadnt noticed this at first but the problem was that in the MsBuild script the   %BTAD_InstallDir% tag was being read as environment variable so the path being passed to BTSTask was:

\Acme.BizTalk.Orchestrations.dll

The fix to this was simple to replace %BTAD_InstallDir% with %%BTAD_InstallDir%% which resolved the problem.

Posted on Tuesday, April 15, 2008 8:34 PM BizTalk , BizTalk Build & Deployment | Back to top


Comments on this post: %BTAD_InstallDir% not as expected for the destination path

# re: %BTAD_InstallDir% not as expected for the destination path
Requesting Gravatar...
Thanks Michael, bacon saved again !
Left by Jason Hyland on Nov 03, 2010 4:32 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net