{"id":226597,"date":"2019-10-03T11:35:23","date_gmt":"2019-10-03T18:35:23","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=226597"},"modified":"2019-10-03T11:34:46","modified_gmt":"2019-10-03T18:34:46","slug":"introducing-solution-level-nuget-package-management-in-visual-studio-for-mac","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/introducing-solution-level-nuget-package-management-in-visual-studio-for-mac\/","title":{"rendered":"Introducing solution-level NuGet Package Management in Visual Studio for Mac"},"content":{"rendered":"<p>Visual Studio 2019 for Mac version 8.3 comes with many new features as summarized in <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2019-for-mac-version-8-3\">this blog post<\/a>. While the entirety of this release was greatly influenced by your feedback, having the ability to manage packages at the solution level was one of the capabilities that most of you expressed as lacking in Visual Studio for Mac. A new solution-level NuGet Package Manager is one of the exciting new features of Visual Studio 2019 for Mac version 8.3. We&#8217;ve made improvements to help you discover packages more easily. This includes an improved experience while searching for new packages, gaining an understanding of what packages are already installed in your project, and finding packages that have updates available. In this blog post, we will focus on the package management experience for a Solution. However, most of the experiences including installing, updating, and viewing installed packages have a similar new experience at the project-level, too.<\/p>\n<p>To launch the NuGet Package Manager for a Solution, you can go to the context menu for the Solution and select \u201cManage NuGet Package\u2026\u201d:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-226607\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/Solution-NuGet-Package-Manager-context-menu.gif\" alt=\"Context menu for Solution-level NuGet Package Manager\" width=\"634\" height=\"404\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Add new packages<\/h2>\n<p>When you search and try to add a new package, you can now select the projects you want to install the package into.<\/p>\n<p>At any time, you can go to the <strong>Installed<\/strong> tab and view list of all the packages installed in your solution, allowing you to uninstall to update them.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-226604 alignnone\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-install-1024x677.png\" alt=\"NuGet Package Management Install\" width=\"617\" height=\"408\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-install-1024x677.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-install-300x198.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-install-768x508.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-install.png 1710w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Update packages<\/h2>\n<p>The <strong>Updates<\/strong> tab shows you all the packages in the solution for which updates are available (or a project, if you invoke the command at a project level).<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-226606\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-update.png\" alt=\"NuGet Package Manager Updates\" width=\"621\" height=\"412\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-update.png 1664w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-update-300x199.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-update-768x509.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-update-1024x679.png 1024w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/p>\n<h2>Consolidate packages<\/h2>\n<p>Often, large solutions end up in situations where different projects refer to different versions of a package. To consolidate these versions into one single version of the package that you might want to use across the solution, you can go to the consolidate tab of the NuGet Package Manager invoked at the solution node, select the package\u2019s version to you would like all the projects in the solution to use and choose to <strong>consolidate packages<\/strong>:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-226602\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-consolidate.png\" alt=\"Consolidate packages\" width=\"622\" height=\"411\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-consolidate.png 1709w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-consolidate-300x198.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-consolidate-768x507.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/npm-solution-consolidate-1024x676.png 1024w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/p>\n<h2>Download today!<\/h2>\n<p>To try out these new NuGet capabilities, <a href=\"https:\/\/www.visualstudio.com\/vs\/mac\">download the Visual Studio 2019 for Mac version 8.3\u00a0release<\/a>\u00a0today or <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/update?view=vsmac-2019#changing-the-updater-channel\">update\u00a0to the latest release\u00a0using\u00a0the\u00a0Stable\u00a0channel<\/a> if you already have Visual Studio for Mac installed.<\/p>\n<p>If you run into any issues with the\u00a0version 8.3 release, please use the Help &gt;\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/report-a-problem?view=vsmac-2019\">Report a Problem<\/a>\u00a0menu in the IDE\u00a0to let us know about it. You can also provide suggestions for future improvements to Visual Studio for Mac by using the Provide a Suggestion menu.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-226609\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/VSMac-Report-a-Problem.png\" alt=\"Report a Problem\" width=\"249\" height=\"223\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/VSMac-Report-a-Problem.png 716w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/10\/VSMac-Report-a-Problem-300x269.png 300w\" sizes=\"(max-width: 249px) 100vw, 249px\" \/><\/p>\n<p>Finally,\u00a0make sure to\u00a0follow us on Twitter at\u00a0<a href=\"https:\/\/twitter.com\/VisualStudioMac\">@VisualStudioMac<\/a>\u00a0to stay up to date on the latest Visual Studio for Mac news and let us know what your experience has been like. We look forward to hearing from you!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A new solution-level NuGet Package Manager is one of the exciting new features of Visual Studio 2019 for Mac version 8.3. We&#8217;ve made improvements to help you discover packages more easily. This includes an improved experience while searching for new packages, gaining an understanding of what packages are already installed in your project, and <\/p>\n","protected":false},"author":139,"featured_media":226611,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[298,452],"class_list":["post-226597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-nuget","tag-visual-studio-for-mac"],"acf":[],"blog_post_summary":"<p>A new solution-level NuGet Package Manager is one of the exciting new features of Visual Studio 2019 for Mac version 8.3. We&#8217;ve made improvements to help you discover packages more easily. This includes an improved experience while searching for new packages, gaining an understanding of what packages are already installed in your project, and <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/226597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=226597"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/226597\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/226611"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=226597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=226597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=226597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}