Skip to content

Commit cc4ba54

Browse files
committed
Refresh article
1 parent f32ab34 commit cc4ba54

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

docs/quickstart/install-and-use-a-package-using-the-dotnet-cli.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ ms.topic: quickstart
99

1010
# Quickstart: Install and use a package with the dotnet CLI
1111

12-
NuGet packages contain compiled binary code that developers make available for other developers to use in their projects. For more information, see [What is NuGet](../What-is-NuGet.md). This quickstart describes how to install the popular [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json) NuGet package into a .NET project by using the [dotnet add package](/dotnet/core/tools/dotnet-add-package) command.
12+
In this quickstart, you install the popular [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json) NuGet package into a .NET project by using the [dotnet add package](/dotnet/core/tools/dotnet-add-package) command. NuGet packages contain compiled binary code that developers make available for other developers to use in their projects. For more information, see [What is NuGet](../What-is-NuGet.md).
1313

1414
You refer to installed packages in code with a `using <namespace>` directive, where `<namespace>` is often the package name. You can then use the package's API in your project.
1515

1616
> [!Tip]
17-
> Browse [nuget.org/packages](https://nuget.org/packages) to find packages you can reuse in your own applications. You can search directly at [https://nuget.org](https://nuget.org/packages), or find and install packages from within Visual Studio. For more information, see [Find and evaluate NuGet packages for your project](../consume-packages/finding-and-choosing-packages.md).
17+
> Browse [nuget.org/packages](https://nuget.org/packages) to find packages you can reuse in your own applications. You can search directly at [https://nuget.org](https://nuget.org/packages), or you can find and install packages from within Visual Studio. For more information, see [Find and evaluate NuGet packages for your project](../consume-packages/finding-and-choosing-packages.md).
1818
1919
## Prerequisites
2020

21-
- The [.NET SDK](https://www.microsoft.com/net/download), which provides the `dotnet` command-line tool. Starting in Visual Studio 2017, the dotnet CLI automatically installs with any .NET or .NET Core related workloads.
21+
- Visual Studio 2026. You can install the 2026 Community edition for free from [visualstudio.microsoft.com](https://visualstudio.microsoft.com/), or you can use the Professional or Enterprise edition.
22+
- The [.NET SDK](https://www.microsoft.com/net/download), which provides the `dotnet` command-line interface (CLI). In Visual Studio, the dotnet CLI automatically installs with any .NET-related workloads.
2223

2324
## Create a project
2425

25-
You can install NuGet packages into a .NET project. For this walkthrough, create a simple .NET console project by using the dotnet CLI, as follows:
26+
You can install NuGet packages into a .NET project. For this quickstart, take the following steps to create a basic .NET console project by using the dotnet CLI:
2627

2728
1. Create a folder named *Nuget.Quickstart* for the project.
2829

29-
1. Open a command prompt and switch to the new folder.
30+
1. Open a command prompt window and go to the new folder.
3031

3132
1. Create the project by using the following command:
3233

@@ -44,11 +45,11 @@ You can install NuGet packages into a .NET project. For this walkthrough, create
4445
dotnet add package Newtonsoft.Json
4546
```
4647
47-
2. After the command completes, open the *Nuget.Quickstart.csproj* file in Visual Studio to see the added NuGet package reference:
48+
2. After the command finishes, open the *Nuget.Quickstart.csproj* file in Visual Studio to see the added NuGet package reference:
4849
4950
```xml
5051
<ItemGroup>
51-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
52+
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
5253
</ItemGroup>
5354
```
5455
@@ -89,7 +90,7 @@ You can install NuGet packages into a .NET project. For this walkthrough, create
8990
}
9091
```
9192
92-
1. Save the file, then build and run the app by using the `dotnet run` command. The output is the JSON representation of the `Account` object in the code:
93+
1. Save the file, and then build and run the app by using the `dotnet run` command. The output is the JSON representation of the `Account` object in the code:
9394
9495
```output
9596
{
@@ -99,9 +100,7 @@ You can install NuGet packages into a .NET project. For this walkthrough, create
99100
}
100101
```
101102
102-
Congratulations on installing and using your first NuGet package!
103-
104-
## Related video
103+
## Related videos
105104
106105
> [!VIDEO https://learn-video.azurefd.net/vod/player?show=dotnet-package-management-with-nuget-for-beginners&ep=installing-a-nuget-package-using-the-dotnet-cli-nuget-for-beginners]
107106

0 commit comments

Comments
 (0)