From e0b542faf48465f59d601950e692817b033adbaf Mon Sep 17 00:00:00 2001 From: ghosted-sound <107351893+ghosted-sound@users.noreply.github.com> Date: Tue, 22 Oct 2024 06:52:27 -0700 Subject: [PATCH] Update package-management.md (#7694) * Update package-management.md Corrected grammar; Added bullets, punctuation & white space for readability. * Update docs/csharp/package-management.md Suggested white space removed Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md suggestions applied Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md punctuacyion removed Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md removed word Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md removed punctuation Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md past to present tense Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update docs/csharp/package-management.md Changed past tense to present; Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> * Update package-management.md Reverted paragraph on line 95, accidentaly omitted; * Update docs/csharp/package-management.md --------- Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com> --- docs/csharp/package-management.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/csharp/package-management.md b/docs/csharp/package-management.md index 83a9068853..c8313e5866 100644 --- a/docs/csharp/package-management.md +++ b/docs/csharp/package-management.md @@ -10,14 +10,24 @@ MetaDescription: C# package management with NuGet in Visual Studio Code # NuGet in Visual Studio Code -NuGet is the package manager for .NET. It defines how packages for .NET are created, hosted, and consumed, and provides the tools for each of those functions. NuGet also manages the dependency tree on behalf of a project, so you only need to focus on the packages that you're directly using in a project. In Visual Studio Code, you can manage your NuGet packages either directly from the C# Dev Kit Solution explorer, or by using the Command Palette. To learn more about NuGet, go to the [NuGet documentation](https://learn.microsoft.com/nuget/what-is-nuget). +NuGet is the package manager for .NET. It defines how packages for .NET are created, hosted, and consumed, while providing the tools for each of those functions. NuGet also manages the dependency tree on behalf of a project, so you only need to focus on the packages that you're directly using in a project. + +In Visual Studio Code, you can manage your NuGet packages either directly from the C# Dev Kit Solution explorer, or by using the Command Palette. * [NuGet Commands in C# Dev Kit](#nuget-commands-in-c-dev-kit) * [Dependency Management](#dependency-management) +To learn more about NuGet, go to the [NuGet documentation](https://learn.microsoft.com/nuget/what-is-nuget). + ## NuGet commands in C# Dev Kit -In C# Dev Kit, you can perform NuGet package operations in either of two ways: by using the Command Palette (`kb(workbench.action.showCommands)`) or by right-clicking in the C# Dev Kit Solution explorer. The following sections describe how to use each NuGet command through both of the two methods. +In C# Dev Kit, you can perform NuGet package operations in one of two ways: + +* Using the Command Palette (`kb(workbench.action.showCommands)`) + +* Right-clicking in the C# Dev Kit Solution explorer + +The following sections describe how to use each NuGet command, using both of these two methods. ### Add a package @@ -79,6 +89,8 @@ For projects that use ``, you can see the package references i ![Package references in the Solution Explorer](images/package-management/package-references-solution-explorer.png) -Packages that don't install properly when a restore happens or you run a build will show error icons in **Solution Explorer**. +Packages that don't install properly when a restore happens or when you run a build, will show error icons in **Solution Explorer**. + +**Note**: At this time, you cannot right-click on projects to manage your NuGet packages and there is not a NuGet Package Manager user interface in Visual Studio Code. -**Note**: At this time, you cannot right-click on projects to manage your NuGet packages and there is not a NuGet Package Manager user interface in Visual Studio Code. For more information on managing packages, see [Install and manage NuGet packages with the dotnet CLI](https://learn.microsoft.com/nuget/consume-packages/install-use-packages-dotnet-cli). +For more information on managing packages, see [Install and manage NuGet packages with the dotnet CLI](https://learn.microsoft.com/nuget/consume-packages/install-use-packages-dotnet-cli).