RobustHaven.Tasks (MSBuild)

Buy now

RobustHaven.Tasks includes custom MSBuild tasks used to solve common automation problems like change management and production backups.

Tasks:

  • FlexibleConfigTask
  • MSSQLTask
  • Email
  • FindEmptyDirectories
  • FindFilesOlderThan
  • FtpDelete
  • FtpDiff
  • FtpLogParse
  • FtpUpload
  • GetAppSettingValue
  • GetRHSettingValue
  • MSSQLQuery
  • RHSettings
  • TFSExportTask

How do you use the tasks?

This example shows how the two tasks complement one another. The FlexibleConfigTask is used to conditionally write the connection string, based on the developer's running the task. The output is written to "\MSBuild\bin\MSBuild.config".

The MSSQLTask uses the generated configuration file to rebuild the database, starting with the backup, and then executing all scripts located in the UpdateScriptLocation folder.

 
	
		
		
		
		
		
	

FlexibleConfig.FlexibleConfigTask

This task provides flexibility by conditionally merging a file. Conditions can be any valid CSharp boolean expression. In practice, this can be used to merge settings specific to a user (distributed workforce not sharing a common infrastructure) or environment(integration/QA/production).

Related Articles:

DBChangeManagement.MSBuildTask.MSSQLTask

This task provides a strategy to manage database changes during development.

Project 1

usage example 1

Project 2

This screenshot shows DoNotRelease keyword in the filename so that when the EnvironmentName is Production, then it will not execute.

usage example 2

What's included when purchased?

The download contains the product purchased and three guided labs that allow the user to gain the most benefit from the product. three guided labs