I'm writing a c# wizard template on Visual Studio 2012.
While implementing the IWizard interface, I implement the RunStarted() method.
One of the method's parameters is ReplacementsDictionary, which contains a list of standard parameters to be replaced, as documented in the MSDN.
I wanted to change the project destination directory. so I tried replacing the destinationdirectory parameter like this:
But the new project had been created in the default directory, and not in the one I set.
Do you know what is the correct way to replace the parameters?
While implementing the IWizard interface, I implement the RunStarted() method.
One of the method's parameters is ReplacementsDictionary, which contains a list of standard parameters to be replaced, as documented in the MSDN.
I wanted to change the project destination directory. so I tried replacing the destinationdirectory parameter like this:
public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
{
string CSEAmulationDir = @"C:\Users\userName\Desktop";
replacementsDictionary["$destinationdirectory$"] = solutionDir + "\\apps";
}
But the new project had been created in the default directory, and not in the one I set.
Do you know what is the correct way to replace the parameters?