Updating app.config for testing during build process

Need to update your app.config during the build process for testing?  No problem, Bisque TFS has you covered.  Bisque TFS TFX build task UpdateAppConfig will update the app.config in your test project bin directory.  It works on a XPATH basis to find the correct element to update.  Then you merely provide the attribute name to update and the value to update it to.  In the below example,  UpdateAppConfig is updating a connection string.  The XPath is selecting the “CodeCamper” connection string and then updating the actual connectionString attribute to a dynamic value.  The dynamic value is a full connection string for a AWS RDS MySQL instance, where the information is coming from the Bisque TFS AWS CloudFormation Deploy task.

 

UpdateAppConfig

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s