How to add application.properties
entries
To add an entry to the application.properties
file, override the your template's BeforeTemplateExecution()
method (if not done already) and call the .ApplyApplicationProperty(<name>, <value>)
extension method:
public override void BeforeTemplateExecution()
{
base.BeforeTemplateExecution();
this.ApplyApplicationProperty("Name", "Value");
}