Reputation: 1091
I am trying to follow this tutorial, which asks me to Add Client-Side Library, but I simply don't have that option available:
VS version: Microsoft Visual Studio Community 2019, Version 16.6.1
ASP.NET and web development workload is installed, I tried to install everything it would need, but still nothing.
All other Library Manager-related options are missing from the GUI.
Based on LibraryManager's GitHub repository, it would not require install since it is "Fully integrated into Visual Studio 2017 and newer" but unfortunately it seems like not.
Upvotes: 5
Views: 7619
Reputation: 70
Check the Project SDK. The Option is only available for Web SDK Projects not for i.e. Razor Class Libraries.
So for Projects based on:
<Project Sdk="Microsoft.NET.Sdk.Web">
-> Add Clientside Libraries is available
For Projects based on:
<Project Sdk="Microsoft.NET.Sdk.Razor">
-> Add Clientside Libraries is not available
Change the Project SDK to your needs and the reload the Project.
Upvotes: 1
Reputation: 143
Make sure the Microsoft Library Manager extension is installed/enabled. Mine was disabled for some reason, I enabled it, restarted VS2019(16.10 Preview 1.0), and "Manage Client-Side Libraries..." was back in the menu.
Upvotes: 6