![]() ![]() Use the following command to install a NuGet package: dotnet add package įor example, to install the Newtonsoft.Json package, use the following command dotnet add package Newtonsoft.JsonĪfter the command completes, you can open the project file to see the package reference.įor example, open the. Open a command line and switch to the directory that contains your project file. The dotnet add package command adds a package reference to the project file, and then runs dotnet restore to install the package. Starting in Visual Studio 2017, the dotnet CLI automatically installs with all. ![]() NET Core SDK, which provides the dotnet command-line tool. For a complete list of commands and their arguments, see dotnet CLI commands. NET project SDKs.įor most commands, the CLI tool looks for a project file in the current directory, unless a different project file is specified as an optional switch in the command. NET Standard SDK-style projects, and any other SDK-style projects, for example those that target. This article describes the most common dotnet CLI commands for managing NuGet packages. You can use the dotnet CLI tool on Windows, macOS, or Linux to easily install, uninstall, and update NuGet packages in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |