Home Page › Forums › BizTalk 2004 – BizTalk 2010 › MSBuild script for BizTalk AddReference
- This topic has 10 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
March 26, 2008 at 2:09 AM #19118
How can i write a build script for a BizTalk application referring to another BizTalk application?
I have a application, BizB referring BizA.On a hard search i created some sample script followed but throwing an error at ReferenceApplications=”BizA”
Is some thing i am missing of? Is ‘ReferenceApplications’ is an array type?<Target Name=”AddReferences” >
<BizTalk2006.Application.AddReferences
Application=”BizB”
ReferenceApplications=”BizA”
Server=”<Servername>”
Database=”<DBName>”
Password=””
UserName=”” />
<Message text=”Application Reference Added:” />
</Target> -
March 26, 2008 at 10:25 PM #19143
Give us some more details. What kind of error have you got?
Did you install Sdc Tasks and import them into your MSBuild project?By the way, that’s how I use it (BizB refers to BizA and BizC):
<PropertyGroup>
<BTApplicationName>BizB</BTApplicationName>
</PropertyGroup><ItemGroup>
<BTRef Include=”BizA”></BTRef>
<BTRef Include=”BizC”></BTRef>
</ItemGroup><Target Name=”ApplicationReferences”>
<BizTalk2006.Application.AddReferences
Application=”$(BTApplicationName)”
Server=”$(BTServerName)”
Database=”$(BTServerDatabase)”
Password=””
Username=””
ReferenceApplications=”@(BTRef)” />
<Message Text=”Set References: @(BTRef)”>
</Message>
</Target>
Regards,
Nick-
March 27, 2008 at 12:30 AM #19144
Hi Nick,
I tried with same code snippet you supplied but unfortunately got the following error:
Target AddAppReferences:
: error : A task error has occured.
: error : Message = Application does not exist
: error : ReferenceApplications = Microsoft.Build.Framework.ITaskItem[]
: error : Application = BizB
: error : Database = BizTalkMgmtDb
: error : Password = <null>
: error : Server = <ServerName>
: error : Username = <null>
: error :
: error : at Microsoft.Sdc.Tasks.BizTalk2006.Application.AddReferences.InternalExecute()
: error : at Microsoft.Sdc.Tasks.TaskBase.Execute()I double checked that all applications are deployed and i can view them in Management Studio as well as from BizTalk admin console.
And also Sdc Tasks was imported.Is i am missing any thing?
Thanks in Advance,
Arun
-
March 27, 2008 at 2:20 PM #19161
Hi Arun,
I’ve just checked source code of the AddReference class.
It gives you such kind of error only if either your parent or one of the referenced applications does not exist in the BTS catalog.
If you deploy the applications in the same MSBuild script, check the order you run targets. You can also try to use Application.Exists task to check existance of your apps just before you run AddReference.
Regards,
Nick
-
March 28, 2008 at 12:01 AM #19169
Hi Nick,
Thanks for your reply.
I checked AppExists before AddReferences task and found that the AppExists returned ‘True’ means applications are exist.But the rest is the same story saying ‘application is missing’ in AddReferences task.
I am deploying BizA first and then followed BizB.
Thanks in advance,
Arun
-
March 30, 2008 at 2:17 PM #19189
Well, the last thing I would try is installing the latest version of SDC Tasks Library. If there is no difference, open a new thread in their forum on CodePlex
http://www.codeplex.com/sdctasks/Thread/List.aspx
This task works well for me but I don’t install applications with MSBuild scripting.
Regards,
Nick
-
April 1, 2008 at 12:06 AM #19210
Hi Nick,
I observed that i have had Microsoft.Sdc.Tasks.BizTalk.dll of 2.0.60717.1 version ,Microsoft.Sdc.Tasks.dll of 2.0.60717.1 version ,Microsoft.BizTalk.Deployment.dll of 3.5.1602.2 and Microsoft.BizTalk.ApplicationDeployment.Engine.dll of 3.5.1602.2 version.
Do you think all these are old versions?If so where how can i get latest versions from?
Thanks,
Arun
-
April 1, 2008 at 2:36 PM #19222
Yes, I would download and install the latest version. They’ve just released a new one. Microsoft.Sdc.Tasks.BizTalk.dll & Microsoft.Sdc.Tasks.dll – ver. 2.1.3009.0, Microsoft.Sdc.BizTalkOM.dll -ver. 3.0.8000.0
Regards,
Nick
-
April 1, 2008 at 11:00 PM #19224
Hi Nick,
Where can i download latest version?
Is it licensed? Please provide the url.
Thanks,
Arun
-
April 2, 2008 at 6:47 AM #19236
-
April 11, 2008 at 11:20 PM #19315
Forex data about fx market
http://at.tthosting2.de/moodle/user/view.php?id=56&course=1
[URL=http://at.tthosting2.de/moodle/user/view.php?id=56&course=1]fx market[/URL]
-
-
-
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.