Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to add files to a solution folder?
 

How to add files to a solution folder?

Hello everyone,

I want to add three files to a solution folder. I want these files to be accessible in each solution, but I don't find the way to add them to the folder.

The folder itself is no problem, but how could I add the files?

Thanks in advance!

Nocto  Tuesday, December 18, 2007 10:15 AM
Please take a look at the SolutionFolder interface:

http://msdn2.microsoft.com/en-us/library/envdte80.solutionfolder_members.aspx


vga  Wednesday, December 19, 2007 6:31 AM
Please take a look at the SolutionFolder interface:

http://msdn2.microsoft.com/en-us/library/envdte80.solutionfolder_members.aspx


vga  Wednesday, December 19, 2007 6:31 AM

Thank you for your reply.

Well, then I think it's not possible to add any files, you can add only projects or other solutionfolders...

I just need to add three script files.

Thanks,

Nocto

Nocto  Wednesday, December 19, 2007 7:02 AM

Hi, I have found a solution for this:

Once you have a reference to the project that has a solution folder:

if (solutionFolderProject.Object is SolutionFolder)

{

solutionFolderProject.ProjectItems.AddFromFile(FullFileName);

}

b_c_ellis  Friday, February 29, 2008 1:53 PM

You can use google to search for other answers

Custom Search

More Threads

• Uninstalling Missing Packages
• Error while using Guidance package in Ent Lib 3.0 for Strong Naming DLLs
• Creating a non C# project template using GAT
• TextBox & Conversion
• Package works when manually registered but not using msi
• Action to Add GAC folder to A (Vsd) Setup Project
• The file cannot be opened with the selected editor
• Is there a way to use the T3 engine as a Custom Tool?
• Some items in HoL don't match GAT
• Project Type "Service Factory: Modeling Edition" not found under Guidance Packages