private void RunStartedCore(EnvDTE.DTE dte,
                                    Dictionary <string, string> replacementsDictionary,
                                    WizardRunKind runKind,
                                    object[] customParams)
        {
            //Get the current project
            var project = dte.GetCurrentProject();

            //Get the configuration file
            var configFile = GetConfigurationFile(project);

            if (configFile == null)
            {
                ReportErrorAndCancel("No configuration file could be found.");
            }

            //Verify the standard target import is defined
            EnsureStandardTargetIsImported(project);

            //Set the template parameters
            replacementsDictionary.Add("$IsWebProject$", configFile.ProjectType == ProjectType.Web ? "1" : "0");
            replacementsDictionary.Add("$BaseConfigFileName$", configFile.BaseConfigFileName);

            //Remove the default config transforms if they exist
            RemoveProjectItem(configFile.ConfigurationItem, configFile.BaseConfigFileName + ".Debug.config");
            RemoveProjectItem(configFile.ConfigurationItem, configFile.BaseConfigFileName + ".Release.config");
        }