Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Add files in multiple projects
 

Add files in multiple projects

Hi,

I have made a Guidance Package which creates two projects in my solution.

Is it possible to make a recipe, which adds one or more files to the two projects, ProjectA and ProjectB?

The idea is to right click on the solution and then select "Create new element". A wizard comes up including two input fields, asking for the names of the two classes which is to be added. By hitting "Finish", a "ClassA" class is added to ProjectA and a "ClassB" class is added to ProjectB.

I know how to make items for a single project, but not addingfiles in different projects. Is this possible?

Thank you in advance,

/Nima

Nima_DK  Thursday, October 11, 2007 2:19 PM
Yes.

In the GAT documentation under developing actions theres a section with common actions. One of those is a GetProjectAction. Use that to return ProjectA and then use that project as an input to add ClassA (AddItemFromStringAction for instance), then use a second GetProjectAction action to find and return ProjectB and use that as your input into the action to add ClassB.

Hope that makes sense.

- Ben
Ben Scott - Aust  Friday, October 12, 2007 12:06 AM
Yes.

In the GAT documentation under developing actions theres a section with common actions. One of those is a GetProjectAction. Use that to return ProjectA and then use that project as an input to add ClassA (AddItemFromStringAction for instance), then use a second GetProjectAction action to find and return ProjectB and use that as your input into the action to add ClassB.

Hope that makes sense.

- Ben
Ben Scott - Aust  Friday, October 12, 2007 12:06 AM

Hi Ben,

Thank you very much, that was what i needed :-)

/ Nima

Nima_DK  Tuesday, October 16, 2007 11:32 AM

You can use google to search for other answers

Custom Search

More Threads

• Create Virtual Directory from a Guidance Package.
• WCSF could not work after installing new version of GAT.
• Microsoft.Practices.RecipeFramework.VisualStudio
• Best Practices for GP?
• T4 templates editor?
• GAT Documentation/Walkthroughs
• The registry hive containing the path information for the EntLib assemblies can not be found. The repository classes can be crea
• Uninstall Failure
• Unable to load type System.Collections.Generic.Dictionary
• Files don't copy to UnitTesting Out folder ?