How to disable auto-formatting for C# templates
By default the Software Factory will automatically format files under code management. If this is undesired you can disable this behaviour by setting the AutoFormat
property to false
in the DefineFileConfig
method of your template:
protected override CSharpFileConfig DefineFileConfig()
{
return new CSharpFileConfig(
className: "MyClass",
@namespace: OutputTarget.GetNamespace())
{
AutoFormat = false
};
}