Como: criar pastas para soluções
By default, solution level files such as .sln and .suo files are created in the same physical directory folder as the first project that is created with the solution. Creating a directory structure similar to the logical structure shown in Solution Explorer makes project and solution files easier to locate and facilitates the task of sharing an entire solution with other developers on a team.
You can either specify a directory for the solution by creating just a blank solution or you can specify the directory when you create a new project.
Observação |
---|
As opções disponíveis nas caixas de diálogo, os nomes e os locais dos comandos de menu que você vê, podem diferir do que é descrito na Ajuda dependendo das suas configurações ativas ou edição. This Help page was written with the General Development settings in mind. To view or change your settings, choose Import and Export Settings on the Tools menu. For more information, see Trabalhando com configurações. |
To create a solution directory
On the File menu, select New and then click Project.
In the Project types pane, select Other Project Types and then select Visual Studio Solutions.
In the Templates pane, select Blank Solution.
Enter a name for the project.
Observação For some project types, the Name textbox is unavailable because specifying the location sets the project name. For example, Web applications and XML Web services are located on a Web server and derive their name from the virtual directory specified on that server.
To change the location of the solution directory, choose Browse and specify a new location.
Select Add to Source Control if you want to add the solution to a source control database.
You can specify a solution directory while creating a project.
To create a solution directory while creating a project
On the File menu, select New and then click Project.
Select a template for the project you want to create.
Enter a name for the project.
Observação For some project types, the Name textbox is unavailable because specifying the location sets the project name. For example, Web applications and XML Web services are located on a Web server and derive their name from the virtual directory specified on that server.
Select the Create directory for Solutioncheck box.
In the Nametextbox for the solution, type a name for the solution.
To change the location of the solution and project directories, choose Browse and specify a new location.
Select Add to Source Control if you want to add the solution to a source control database.
For more information, see Creating Multi-Project Solutions.
Consulte também
Tarefas
Como: Criar soluções multi-projeto
Conceitos
Gerenciamento de itens em projetos