Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Project/solution in an existing directory?

How can I create a New project & Solution in the same, existing , directory? No matter what I do, it keeps creating a new (sub)directory for the project and populating that directory instead of the one(s) that already exist. I have the "Create directory for Solution" checkbox cleared so that it will put the solution an dproject in the same folder and not create a solution folder, but it still keeps making the project sub-folder.

How can I fix this?!?

This has bugged me for a long time, but I've been able to ignore it or work-around it up until now. But now it is kicking my butt productivity-wise on my customer project and I need to fix it. thanx... RBarryYoung

(Note: This is VS2005, Team Edition for Software Developers)

like image 896
RBarryYoung Avatar asked May 28 '09 22:05

RBarryYoung


People also ask

How do I create a solution to an existing project?

On the menu bar, select File > New > Project. On the Create a new project page, type solution into the search box. Select the Blank Solution template, and then click Next. Enter Name and Location values for your solution, and then select Create.

Should you place project and solution in the same directory?

For multiproject solutions, having the directory structure reflect the solution structure usually makes more sense—it is best to have a directory that contains your solution file, with subdirectories for each individual project.

How do I add an existing directory to a solution in Visual Studio?

Adding existing files You can add existing files to your project by right-clicking on the Project node and selecting Add > Add Files.... Alternatively, to add an entire folder, select Add > Add Existing Folder.... The file browser is shown. It lets you search your system for the required item to add.


1 Answers

From Visual Studio, if you have no solution open, you can select

File->New->Project From Existing Code

Select the project type

Put the directory you want the solution and project file to be in as the "Project file location" field.

Finish the wizard and you'll have a project file and solution file in the same directory.

If the "Project from existing code" option is not available

Make a custom keyboard shortcut, toolbar button or menu item by using the customization features of VS.

Tools->Customize

Select the "Keyboard" button to add a keyboard shortcut or select the "Command" tab to add a toolbar button or menu item. The command you are looking for is:

File->New Project From Existing Code

Assign whatever keyboard shortcut or drag an icon to whichever menu/toolbar you want.

like image 81
heavyd Avatar answered Sep 27 '22 18:09

heavyd