Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:14:08+00:00 2026-06-17T05:14:08+00:00

In VS2010, I have created a custom multi-solution project template and implemented IWizard to

  • 0

In VS2010, I have created a custom multi-solution project template and implemented IWizard to replace custom parameters in the Project.

I would like to know if in the Wizard I give an option to select an additional project that needs to be added to existing template such as test project.

How can I handle this in code? On which method of IWizard implementation will I add a new project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:14:09+00:00Added an answer on June 17, 2026 at 5:14 am

    You can programmatically add additional projects to the ones defined in the multi-project template.

    Something like this:

    public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
    {
        var solution = (Solution2)((DTE2)automationObject).Solution;
        var template = solution.GetProjectTemplate("Folder\\TestProject.zip", "CSharp");
    
        string destinationFolder = "...";
        string projectName = "..."
        solution.AddFromTemplate(template, destinationFolder, projectName, false);
    }
    

    You probably want to move the code to another method to RunStarted, but this is roughly how I do it. I actually use a completely empty set of projects in the multi-project template however, and trigger all the project templates like this.

    One requirement (I think) is that the project needs to be present in one of the usual template folders, which means it’s also available to be added individually.
    This could be an advantage or a disadvantage for you, but your Wizards will need to be able to deal with that in some way.

    I’ve been meaning to do a Blog post about this and some other templating stuff, unfortunately I haven’t found the time yet. Perhaps I should put it a bit higher on the priority list…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a new project in VS2010 using the Visual c# >
I have created a Word add-in which would load data in custom ribbon from
I have created an Excel Addin using the VSTO Template (VS2010, Excel2007). In the
I have created a dll project in VS2010 (Win32 console application>dll). I put some
I have created a new project in Eclipse, PyDev. If I were in VS2010,
I have a standard sql server 2008 project which has been created using vs2010.
I have created a DeclarativeServiceLibrary using VS2010 beta 2, Please check this image of
I have created my SSRS report in VS2010 and it looks really good. Upon
we have created a VSTO Excel workbook with VS2010, .NET 4.0. After we publish
I have a VS2010 unit test project set to using SpecFlow 1.8.1 and mstest.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.