"Add Client-Side Library" option is missing in Visual Studio 2019 Community

6.4k Views Asked by At

I am trying to follow this tutorial, which asks me to Add Client-Side Library, but I simply don't have that option available:

option missing from Add menu.

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.

2

There are 2 best solutions below

0
On

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.

0
On

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.

Enable Microsoft Library Manager extension