Ejemplo n.º 1
0
        /// <summary>
        /// Adds the project plugins.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="plugins">The plugins.</param>
        /// <param name="folderName">Name of the folder.</param>
        /// <param name="extensionName">Name of the extension.</param>
        public void AddProjectPlugins(
            Project project,
            List <Plugin> plugins,
            string folderName,
            string extensionName)
        {
            if (project != null)
            {
                foreach (Plugin plugin in plugins)
                {
                    DTE2 dte2 = project.DTE as DTE2;

                    string message = string.Format("Ninja Coder is adding {0} plugin to {1} project.", plugin.FriendlyName, project.Name);
                    dte2.WriteStatusBarMessage(message);

                    this.AddPlugin(plugin, project, folderName, extensionName);
                }
            }
        }