CÁCH MỞ 1 PROJECT TRONG VISUAL STUDIO

  -  

In this article

In this article, we"ll show you how to lớn quickly create a new project in Visual Studio from a template.

Bạn đang xem: Cách mở 1 project trong visual studio


xuất hiện the New Project dialog

There are multiple ways to create a new project in Visual Studio 2017. On the Start page, you can type in the name of a project template in the Search project templates box or select the Create new project links khổng lồ open the New Project dialog box. Aside from the Start page, you can also select File > New > Project on the thực đơn bar or cliông chồng the New Project button on the toolbar.

*
New > Project options selected." data-linktype="relative-path">

Select a template type

In the New Project dialog box, available project templates appear in a danh sách under the Templates category. Templates are organized by programming language & project type, such as Visual C#, JavaScript, và Azure Data Lake.

*


Note

The danh sách of available languages and project templates that appears depends on the version of Visual Studio you are running and the workloads that are installed. To learn about how khổng lồ install additional workloads, see Modify Visual Studio by adding or removing workloads and components.


Show the danh mục of templates for the programming language you want khổng lồ use by clicking the triangle next lớn the language name and then choosing a project category (such as Windows Desktop).

The following image shows the project templates available for Visual C# .NET Vi xử lý Core projects:

*

Configure your project

Enter a name for the new project in the Name box. You can save sầu the project in the default location on your computer or click the Browse button to find another location. You can also select a solution name or add the new project lớn a Git repository (by selecting Add lớn Source Control).

Cliông chồng OK khổng lồ create the solution and project.


xuất hiện the Create a new project page

There are multiple ways to create a new project in Visual Studio 2019. When you first open Visual Studio, the start window appears, and from there, you can select Create a new project.

*

If the Visual Studio development environment is already open, you can create a new project by choosing File > New > Project on the thực đơn bar. You can also clichồng the New Project button on the toolbar, or press Ctrl+Shift+N.

*

Select a template type

On the Create a new project page, a danh sách of your recently selected templates appears on the left. The templates are sorted by most recently used.

Xem thêm: Dòng Điện Xoay Chiều 3 Pha Là Gì? Công Thức Tính Dòng Điện Xoay Chiều 3 Pha

If you"re not selecting from the recently used templates, you can filter all available project templates by Language (for example, C# or C++), Platform (for example, Windows or Azure), & Project type (for example, Desktop or Web). You can also enter tìm kiếm text into the tìm kiếm box lớn further filter the templates, for example, asp.net.

*

The tags that appear under each template correspond to lớn the three dropdown filters (Language, Platform, & Project type).


Tip

If you don"t see the template you"re looking for, you might be missing a workload for Visual Studio. To install additional workloads, for example, Azure Development or điện thoại Development with .NET, cliông chồng the Install more tools & features links to open Visual Studio Installer. From there, select the workloads you want to lớn install, & then select Modify. After that, additional project templates will be available lớn choose from.

*


Select a template and then cliông xã Next.

Configure your project

The Configure your new project page has options to lớn name your project (và solution), select a disk location, and select a Framework version (if applicable lớn the template you chose).

*


Note

If you create a new project when you already have a project or solution open in Visual Studio, an extra configuration option is available. You can choose to create a new solution or add the new project to lớn the solution that"s already open.

*


Cliông chồng Create to lớn create the new project.


Add additional projects lớn a solution

If you want to add an additional project to a solution, right-cliông xã the solution node in Solution Explorer and then select Add > New Project.

Xem thêm: Cm Đức Tính Giản Dị Của Bác Hồ (9 Mẫu, Đức Tính Giản Dị Của Bác Hồ


Tip

For an example of a project & solution created from scratch, complete with step-by-step instructions and sample code, see Introduction to projects và solutions.