Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio Wizard Template - Replace project destination directory

$
0
0
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:

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?

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>