BTDF / DeploymentFramework

The Deployment Framework for BizTalk is the most powerful and customizable, yet easy-to-use toolkit for deploying and configuring your BizTalk solutions.
MIT License
53 stars 24 forks source link

StartReferencedApplicationsOnDeploy (False) only works in combination with UseLegacyApplicationControl (True) #383

Open tfabraham opened 6 years ago

tfabraham commented 6 years ago

Deployment Framework V6.0

First of all, I am a new user of the BTDF and it works great!

I am trying to accomplish that under no circumstances receive locations (also/especially from referenced apps) will be automatically enabled. So I tried to use the following properties in my BTDF project file.

False False

Unfortunately, this will not prevent the referenced apps from starting and its receive locations from enabling.

EnableAllReceiveLocationsOnDeploy I figured out that this property only applies to the BizTalk app you are currently deploying and not to referenced apps. I think this is fair enough.

StartReferencedApplicationsOnDeploy This property only has effect in combination with the property

true (target: StartApplicationViaBizTalk). In the BizTalkDeploymentFramework.targets file you can find the target "StartTheApplication" and this target uses the property StartReferencedAppsDefaultAction with a default value of "Start". So, I am missing the possibility of specifying the ApplicationStartOptions for a referenced BizTalk app, because in my situation it is ok that the app will start, but it is not ok that it will enable the receive locations. I think this can be resolved by extending the ControlBizTalkReferencedApps element (in the BizTalkDeploymentFramework.targets file) and C# class (ControlBizTalkReferencedApps.cs), with an attribute StartOption. And then apply the value of ControlBizTalkAppStartOption, which is already composed out of the properties EnableAllReceiveLocationsOnDeploy and StartReferencedApplicationsOnDeploy. This is similar to the legacy ControlBizTalkApp element and C# class. Am I right or missing something? I am looking forward to some replies/reviews. Best Regards, Mella Ps. Uploaded a Patch. #### This work item was migrated from CodePlex CodePlex work item ID: '10956' Vote count: '1'