![]() ![]() ![]() ![]() nuspec file, using tokens if generating the file from a Visual Studio project.Īdds a package to a non-HTTP package source using hierarchical layout. Saves an API key for a given package source when that package source requires a key for access. When running on Mono, restoring packages using the PackageReference format is not supported. Restores all packages referenced by the package management format in use. Lists locations of the global-packages, http-cache, and temp folders and clears the contents of those folders. When running on Mono, creating a package from a project file is not supported.ĭisplays help information or help for a command. The pack, restore, delete, locals, and push commands are also available on Mac and Linux through the dotnet CLI.Īvailable commands and applicability to package creation, package consumption, and/or publishing a package to a host: Common CommandsĬreates a NuGet package from a.All commands work with nuget.exe running on Mono except where indicated for pack, restore, and update.See feature availability for exact details. To make the NuGet CLI available within the Package Manager Console in Visual Studio, see Using the nuget.exe CLI in the console. Test the installation by entering nuget with no parameters. Add the folder where you placed nuget.exe to your PATH environment variable to use the CLI tool from anywhere.īehaviors may vary slightly by OS distribution.Įxecute the following command at a shell prompt: # Download the latest stable `nuget.exe` to `/usr/local/bin`Ĭreate an alias by adding the following script to the appropriate file for your OS (typically ~/.bash_aliases or ~/.bash_profile): # Create as alias for nugetĪlias nuget="mono /usr/local/bin/nuget.exe".The file is not an installer you won't see anything if you run it directly from the browser. Instruct your browser to save the file to a folder of your choice. Each download is the nuget.exe file directly.The latest version is always recommended, and 4.1.0+ is required to publish packages to. Visit /downloads and select NuGet 3.3 or higher (2.8.6 is not compatible with Mono). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |