title: Using wizards with project templates in VS 2019 : Wizard is not working
body: <p>I'm trying to create a wizard for my project template by referring to this article.</p>
  <p><a href="https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates?view=vs-2019" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates?view=vs-2019</a></p>
  <p>I have done all the steps as in the documentation. But when I try to create a new project it doesn't show the form and it didn't use the updated version of the project template.</p>
  <p>It gives following error.</p>
  <p><a href="https://i.stack.imgur.com/pWeW8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pWeW8.png" alt="enter image description here" /></a></p>
  <p><code>RunStarted</code> method looks like following:</p>
  <pre><code>public void RunStarted(object automationObject,
              Dictionary&lt;string, string&gt; 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(&quot;$custommessage$&quot;,
                      customMessage);
              }
              catch (Exception ex)
              {
                  MessageBox.Show(ex.ToString());
              }
          }
  </code></pre>
  <p>You can check the full code here - <a href="https://github.com/kalpanibhagya/ProjectTemplateRacr" rel="nofollow noreferrer">https://github.com/kalpanibhagya/ProjectTemplateRacr</a></p>