Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Create different structures in Visual Studio and File System
 

Create different structures in Visual Studio and File System

Hi,

Ineed to create different structures in Visual Studio andFile System. That means suppose if there is a project "Project A" in visual studio solution folder "Application" at root of the solution, however, it will be physically located at C:\Projects\Apps\Project A.csproj. How to create such projects in guiadance automation toolkit recipe?

When I create new project by selecting GAT template, while loading, guidance package should create 3 or 4 projects grouped under different solution folders and at the same time the projects will be createdin different folders in file system.

Kindly guide.

Thanks,

Navneet

rnavneet  Thursday, December 06, 2007 11:07 AM
Hi Navneet,

Createing projects under different locations on the file system will usually get you in trouble when trying to use a source control system, have you considered that? You may want to review that decision based on that.

Now, if you really want to go this way you should try the different DTE AddProjectXXX APIs looking for one (I can't remember from the top of my head) that will let you add a project from a specified location without actually copying the files under the root of your solution). You may also want to try the Visual Studio Extensibility forums for a question like this one.

HTH,
-Victor.

vga  Monday, December 10, 2007 11:27 AM
Hi Navneet,

Createing projects under different locations on the file system will usually get you in trouble when trying to use a source control system, have you considered that? You may want to review that decision based on that.

Now, if you really want to go this way you should try the different DTE AddProjectXXX APIs looking for one (I can't remember from the top of my head) that will let you add a project from a specified location without actually copying the files under the root of your solution). You may also want to try the Visual Studio Extensibility forums for a question like this one.

HTH,
-Victor.

vga  Monday, December 10, 2007 11:27 AM

Hi Victor,

Now I am able to perform following three activities from a guidance package:

1) Create Project on file system at a perticular path

2) Create VS Project for the same in Visual Studio

3) Create Web Site or Virtual folder for the same in IIS and map it to physical folder.

These activities are performed by multiple actions called from a recipe.

However, I want toopenweb site project in visual studio solution from a specific local IIS Path. Same like opening Web Site in VS (File > Open > Web Site > Local IIS). I am not getting how to do this using custom action in guidance package.

I am using following code to create new project:

base.GetService<DTE>(true).Solution.AddFromTemplate(templateFile, destination, NewProjectName, false);

Kindly suggest on opening local IIS web site in Visual Studio to create new VS Project.

Thanks a lot.

Regards,

Navneet

rnavneet  Thursday, December 13, 2007 12:26 PM

You can use google to search for other answers

Custom Search

More Threads

• How do you include a folder that has been excluded from a project?
• How to modify the SCSF Add View (with presenter) generated code
• How do I uninstall GAX manually from a Vista64bit os
• Can a recipe be called from a recipe?
• Get Project Reference Sample Code
• Can instal GAT (and MobileClient! ;( )
• Unfold Recipe vs New Item
• Can't able to run a recipe more than Once
• What's the best way to programatically call an action from within another action?
• Get Full Path for Project Item...