To report problems or share ideas for previews, open an issue on the NuGet GitHub repository. Developers working on Windows can also explore the NuGet Package Explorer , an open-source, stand-alone tool to visually explore, create, and edit NuGet packages. It’s very helpful, for example, to make experimental changes to a package structure without rebuilding the package.
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Table of contents Exit focus mode. Table of contents.
Note NuGet. NET Framework 4. Tip Use nuget update -self on Windows to update an existing nuget. Submit and view feedback for This product This page. View all page feedback. In this article. CLI tool for. NET Core and. NET Framework. Included with the.
NET Core related workloads. NET Standard libraries. Visual Studio. Visual Studio for Mac. On Mac, certain NuGet capabilities are built-in directly. For some packages, the Update button is disabled and a message appears saying that it’s “Implicitly referenced by an SDK” or “AutoReferenced”. This message indicates that the package is part of a larger framework or SDK and should not be updated independently.
For example, Microsoft. App is part of the. NET Core SDK, and the package version is not the same as the version of the runtime framework used by the application. You need to update your. NET Core and. NET Core runtime. See this document for more details on. NET Core metapackages and versioning. This applies to the following commonly used packages:. To update multiple packages to their newest versions, select them in the list and select the Update button above the list.
You can also update an individual package from the Installed tab. In this case, the details for the package include a version selector subject to the Include prerelease option and an Update button.
Managing packages for a solution is a convenient means to work with multiple projects simultaneously. When managing packages for the solution, the UI lets you select the projects that are affected by the operations:. 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. 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. To change the source from which Visual Studio obtains packages, select one from the source selector:.
The source now appears in the selector drop-down. To change a package source, select it, make edits in the Name and Source boxes, and select Update. Using the up and down arrow buttons does not change the priority order of the package sources. Visual Studio ignores the order of package sources, using the package from whichever source is first to respond to requests. For more information, see Package restore.
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. 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.
When selected, a modal window displays which the dependencies of a chosen package before the package is installed:. 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:.
Microsoft nuget – visual studio 2015 free download –
NET-related workloads. The Browse tab displays packages by popularity from the currently selected source see package sources. Search for a specific package using the search box on the upper left. Select a package from the list to display its information, which also enables the Install button along with a version-selection drop-down. Select the desired version from the drop-down and select Install. Visual Studio installs the package and its dependencies into the project.
You may be asked to accept license terms. When installation is complete, the added packages appear on the Installed tab. Packages are also listed in the References node of Solution Explorer, indicating that you can refer to them in the project with using statements. To include prerelease versions in the search, and to make prerelease versions available in the version drop-down, select the Include prerelease option. NuGet has two formats in which a project may use packages: PackageReference and packages.
The default can be set in Visual Studio’s options window. Select the package to uninstall using search to filter the list if necessary and select Uninstall. Note that the Include prerelease and Package source controls have no effect when uninstalling packages. In web site projects, right-click the Bin folder. Select the Updates tab to see packages that have available updates from the selected package sources.
Select Include prerelease to include prerelease packages in the update list. Select the package to update, select the desired version from the drop-down on the right, and select Update. For some packages, the Update button is disabled and a message appears saying that it’s “Implicitly referenced by an SDK” or “AutoReferenced”.
This message indicates that the package is part of a larger framework or SDK and should not be updated independently.
For example, Microsoft. App is part of the. NET Core SDK, and the package version is not the same as the version of the runtime framework used by the application. You need to update your. NET Core and. NET Core runtime. See this document for more details on. NET Core metapackages and versioning. This applies to the following commonly used packages:. To update multiple packages to their newest versions, select them in the list and select the Update button above the list.
You can also update an individual package from the Installed tab. In this case, the details for the package include a version selector subject to the Include prerelease option and an Update button. Managing packages for a solution is a convenient means to work with multiple projects simultaneously.
When managing packages for the solution, the UI lets you select the projects that are affected by the operations:. 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. 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.
To change the source from which Visual Studio obtains packages, select one from the source selector:. The source now appears in the selector drop-down.
To change a package source, select it, make edits in the Name and Source boxes, and select Update. Using the up and down arrow buttons does not change the priority order of the package sources. Visual Studio ignores the order of package sources, using the package from whichever source is first to respond to requests.
For more information, see Package restore. 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.
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. When selected, a modal window displays which the dependencies of a chosen package before the package is installed:.
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:.
Remove dependencies : when selected, removes any dependent packages if they’re not referenced elsewhere in the project.
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.
Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. Skip to main content. Contents Exit focus mode. 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.
Tip If a package source reappears after deleting it, it may be listed in a computer-level or user-level NuGet. Is this page helpful?
Yes No. Any additional feedback? Skip Submit. Submit and view feedback for This product This page. View all page feedback.
Microsoft nuget – visual studio 2015 free download –
NuGet is the package manager for Microsoft Visual Studio. The IDE tooling for NuGet automatically downloads packages to your solution. Install Nuget package in Visual Studio , , Download Free Word/PDF/Excel API Install-Package replace.mezation. The NuGet Package Manager UI in Microsoft Visual Studio for Windows allows you to use the extensions installer in Visual Studio, download the extension.