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

Feature: Allow use of properties from settings spreadsheet in PropertyGroup's and ItemGroup's #312

Closed tfabraham closed 6 years ago

tfabraham commented 6 years ago

SCENARIO: Imagine that you want to restart a different set of host instances in each deployment environment. You create a setting in the spreadsheet with the list of host names for each environment called HostsToControl. In the .btdfproj you add:

When you execute the deploy, ALL hosts restart instead of the custom list.

EXPLANATION: This occurs due to the order of evaluation in MSBuild. By the time the Deployment Framework dynamically creates the property based on the spreadsheet, MSBuild has already evaluated the ItemGroup.

FIX: Use the MSBuild task to dynamically restart the build process AFTER defining the properties from the spreadsheet, causing them to be re-evaluated. To the user, nothing appears different but the above scenario just works!

This work item was migrated from CodePlex

CodePlex work item ID: '10541' Assigned to: 'tfabraham' Vote count: '1'

tfabraham commented 6 years ago

[UnknownUser@3/3/2014] Resolved with changeset 74645: Allow use of properties from settings spreadsheet in PropertyGroup's and ItemGroup's (#10541)

tfabraham commented 6 years ago

[svangeti@7/3/2017] Tom, I know you have put a workaround for this issue, but I am having the same issue now. It's restarting all the hosts irrespective of provided list. Here are my settings.

I tried to evaluate the BizTalkHosts value, but it's coming as blank.

Using the latest version of BTDF