Environment specific BRE deployment

Topics: Server Deployment
Sep 28, 2011 at 7:33 AM


In my project I need to be able to deploy different BRE policies depending on the target environment (DEV/TEST/PROD...).

Does BTDF support this or are there any suggestions how to accomplish this?



Sep 29, 2011 at 8:51 AM

If you need them to be completely different policy files for each environment, then you can use conditional ItemGroup's.  When you specify an ItemGroup containing rule policy elements, you can add a Condition attribute to the ItemGroup (see MSBuild documentation).  In that condition you can check against a property value.  You can create a setting line item in the settings Excel spreadsheet for environment, and test against that.  You'll need to add the name of your setting to the PropsFromEnvSettings list (you should have that element already in your .btdfproj).


Nov 4, 2011 at 1:13 PM

Hi Tom,

Many thanks for the really fast reply!!

Sorry for my late reply. I had to "switch context" so I forgot. I will now continue with this...