locked
How Can I create a solution and Project programmatically using EnvDTE vs 2005? RRS feed

  • Question

  • need to create a solution and project programmatically.

    I have found  a couple of example on msdn but they dont work in vs2005.Can somebody post a small snippet how to do it?I get all sorts of errors!

    My attempt using c# 2005

    --Created a new project

    --Added references to EnvDTE and EnvDTE80

    private void CreateSolution()

    {

    Solution Sol ;

    Sol = Solution;

    Sol.Create(@"c:\Temp2","TestMySolution");

    }

    Thanks in advance

    Friday, February 23, 2007 1:25 AM