To install/uninstall client side libraries (Bootstrap, jQuery, Popper, Knockout etc), Visual studio has a built-in support known as LibMan in ASP.NET Core projects, including:
Support for configuring and running LibMan restore operations on build.
Menu items for triggering LibMan restore and clean operations.
Search dialog for finding libraries and adding the files to a project.
Editing support for libman.json—the LibMan manifest file.
This file can be added in existing project by going through Project->Manage Client Side Libraries. A file Libman.json will be added to the root folder automatically.
LibMan file can be manually edited. This file is located in project root folder, Libman.json.
Cleaning & Restoring Client-Side Libraries can be done quite easily by right clicking on the libman.json file, and it will show up these 2 options. Simply select the needed option to perform the task.
Here is the screenshot:
Update or Uninstall Client Side Libraries
The steps to update or uninstall a Client-Side Library are similar. You need to follow the below steps.
1. Open the libman.json file and then click on the client-side library which you want to uninstall or update.
2. You will see a light yellow bulb icon appearing on the left side. Click on this icon to get the options for – whether to update or uninstall that specific client-side library. Here is the screenshot.
You can also uninstall and update the a client-side library by ‘removing or changing it’s version nunber’ given on it’s entry in the libman.json file, and then saving the file.
For popovers to work, either install Popover.js client library. If you prefer, try bootstrap bundle and you will get popover in it;
Visual Studio has a handy feature, Task List. Click on View->Task List.
Task list has tokens that are used to track code comments. This also acts as a shortcut to navigate to relevant code section. This list comes with 3 default tokens; TODO, HACK and !UnresolvedMergeConflict.
We can add custom tokens, if we want. Here is how;
Open Tools -> options -> Environment, you will see Task List.
Add a new custom token;
To make this feature working, All you need to do is to add comments in your code;
HACK: I don't need serviceProviderId parameter here. The only reason I am adding this becuase this comes
from a link in razor page list and I need to keep serviceProviderId and projectId in session.
Session starts here for now.
public async Task<IActionResult> ProjectTaskList(Guid projectId)
var result = await _httpFactoryService.GetProjectActionAsync(projectId);
If you want to develop a modern web application, you will realize very quickly that you can’t write everything on your own. You will rely on some third party client and server side libraries and components to increase your development speed. There are many online code repositories and sources available to developers these days and downloading and keeping track of all third-party packages can be a painful task