Click to See Complete Forum and Search --> : Adding files to VS2005 Solution Explorer


chittark
January 12th, 2006, 10:23 PM
Hi,
Programatically i want add files to the solution explorer.
Say for a particular project when opened in VS2005, the list of files are displayed in the solution explorer. At the end of the files i want to add some custom files programatically.

Can any one help me out on this..


Thanks a ton in advance

boudino
January 13th, 2006, 01:40 AM
Do you realy want to add files to solution, or do you mean a project? But it shouldn't matter.
You can do it directly in VS. Look at DTE (I am not now sure if it is class or what). Or you load the .project file just a file - it is pure XML, and edit. I think this is valid for VS2005 .sln files too. Just create a solution, do manualy what you want and look into the files what was added. Then repeat it programaticaly.