问题描述
我已经完成了文档中的所有步骤。但是当我尝试创建一个新项目时,它没有显示表单,也没有使用项目模板的更新版本。
它给出了以下错误。
RunStarted
方法如下所示:
public void RunStarted(object automationObject,Dictionary<string,string> replacementsDictionary,WizardRunKind runKind,object[] customParams)
{
try
{
// display a form to the user. The form collects
// input for the custom message.
inputForm = new UserInputForm();
inputForm.ShowDialog();
customMessage = UserInputForm.CustomMessage;
// Add custom parameters.
replacementsDictionary.Add("$custommessage$",customMessage);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
您可以在此处查看完整代码 - https://github.com/kalpanibhagya/ProjectTemplateRacr
解决方法
问题出在 VSIX 项目中 WizardImplementation.cs
类中的命名空间。它是 MyProjectWizard
但它应该是 WizardRacr
。