Attempts to update configuration from a configuration file. The version of CodeSmith must be older than CodeSmith 5.1.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
protected T UpgradeFile<T>(
	string fileName
)
where T : class
Visual Basic
Protected Function UpgradeFile(Of T As Class) ( 
	fileName As String
) As T

Parameters

fileName
Type: System..::..String
The configuration filename.

Type Parameters

T
Type of the configuration class.

Return Value

Type: T
Updated Configuration file if a configuration file was found.

See Also