I have an item template,
<v:View x:TypeArguments="local:$safeitemname$Model" x:Name="view"
However in practice $safeprojectname$ was not replaced. After research I found its only available for project template.
I tried using the Wizard, however, I don't know how to get the project name with the given paramters of
IWizard.RunStarted(Object, Dictionary<String,String>, WizardRunKind, Object) Method. It is posible to get it via
IWizard.ProjectItemFinishedGenerating(ProjectItem), but this method is called after everything are done.
Anther thing I found perhaps useful is an answer in Stackoverflow, https://stackoverflow.com/a/42138852/12463119. Unfortunately I cannot understand it as I don't where where the 'dte' varible come from.
Please tell me how to let my template be able to capture the project name and automatically write into the generated file.