Skip to content

Commit

Permalink
Update package-management.md (#7694)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update docs/csharp/package-management.md

suggestions applied

Co-authored-by: Nick Trogh <[email protected]>

* Update docs/csharp/package-management.md

punctuacyion removed

Co-authored-by: Nick Trogh <[email protected]>

* Update docs/csharp/package-management.md

removed word

Co-authored-by: Nick Trogh <[email protected]>

* Update docs/csharp/package-management.md

removed punctuation

Co-authored-by: Nick Trogh <[email protected]>

* Update docs/csharp/package-management.md

past to present tense

Co-authored-by: Nick Trogh <[email protected]>

* Update docs/csharp/package-management.md

Changed past tense to present;

Co-authored-by: Nick Trogh <[email protected]>

* Update package-management.md

Reverted paragraph on line 95, accidentaly omitted;

* Update docs/csharp/package-management.md

---------

Co-authored-by: Nick Trogh <[email protected]>
  • Loading branch information
ghosted-sound and ntrogh authored Oct 22, 2024
1 parent 298a0d3 commit e0b542f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/csharp/package-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -79,6 +89,8 @@ For projects that use `<PackageReference>`, 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).

0 comments on commit e0b542f

Please sign in to comment.