10/14/2020 Openipmi Download Package Manager Mac
Sep 16, 2020. Jul 09, 2019.
-->
The NuGet Package Manager UI in Visual Studio on Windows allows you to easily install, uninstall, and update NuGet packages in projects and solutions. For the experience in Visual Studio for Mac, see Including a NuGet package in your project. The Package Manager UI is not included with Visual Studio Code.
Note
![]()
If you're missing the NuGet Package Manager in Visual Studio 2015, check Tools > Extensions and Updates... and search for the NuGet Package Manager extension. If you're unable to use the extensions installer in Visual Studio, download the extension directly from https://dist.nuget.org/index.html.
Starting in Visual Studio 2017, NuGet and the NuGet Package Manager are automatically installed with any .NET-related workloads. Install it individually by selecting the Individual components > Code tools > NuGet package manager option in the Visual Studio installer.
Find and install a package
Tip
To include prerelease versions in the search, and to make prerelease versions available in the version drop-down, select the Include prerelease option.
Note
NuGet has two formats in which a project may use packages:
PackageReference and packages.config . The default can be set in Visual Studio's options window.
Uninstall a package
Update a package
Manage packages for the solution
Managing packages for a solution is a convenient means to work with multiple projects simultaneously.
Consolidate tab
Developers typically consider it bad practice to use different versions of the same NuGet package across different projects in the same solution. When you choose to manage packages for a solution, the Package Manager UI provides a Consolidate tab on which you can easily see where packages with distinct version numbers are used by different projects in the solution:
In this example, the ClassLibrary1 project is using EntityFramework 6.2.0, whereas ConsoleApp1 is using EntityFramework 6.1.0. To consolidate package versions, do the following:
The Package Manager installs the selected package version into all selected projects, after which the package no longer appears on the Consolidate tab.
Package sources
To change the source from which Visual Studio obtains packages, select one from the source selector:
To manage package sources:
Tip
If a package source reappears after deleting it, it may be listed in a computer-level or user-level
NuGet.Config files. See Common NuGet configurations for the location of these files, then remove the source by editing the files manually or using the nuget sources command.
Package manager Options control
When a package is selected, the Package Manager UI displays a small, expandable Options control below the version selector (shown here both collapsed and expanded). Note that for some project types, only the Show preview window option is provided.
The following sections explain these options.
Show preview window
When selected, a modal window displays which the dependencies of a chosen package before the package is installed:
Install and Update Options
(Not available for all project types.)
Dependency behavior configures how NuGet decides which versions of dependent packages to install:
File conflict action specifies how NuGet should handle packages that already exist in the project or local machine:
Uninstall Options
(Not available for all project types.)
Openipmi Download Package Manager Mac Download
Remove dependencies: when selected, removes any dependent packages if they're not referenced elsewhere in the project.
Openipmi Download Package Manager Macos
Force uninstall even if there are dependencies on it: when selected, uninstalls a package even if it's still being referenced in the project. This is typically used in combination with Remove dependencies to remove a package and whatever dependencies it installed. Using this option may, however, lead to broken references in the project. In such cases, you may need to reinstall those other packages.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |