Click here to Skip to main content
15,860,861 members
Articles / Web Development / ASP.NET / ASP.NET Core
Tip/Trick

How to Add Client-side Library to ASP.NET CORE 2.2 using VS2017 (The Easy Way)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
10 Dec 2018CPOL1 min read 20.2K   5   3
Easy way to Install Client Side Library Using UI on VS 2017 ASP NET Core 2.2 Projects

Introduction

Libman is a lightweight, client-side library acquisition tool. It works perfectly for simple web apps or projects that do not need advanced tools (e.g.: npm/web pack) which is an overkill for small apps. Earlier, bower was used on VS 2017 but unfortunately, things went sour for bower so VS Team opted to use to Libman.

And as of this time of writing, Libman now has a UI editor which makes installing client side libs easy (If you're not confident to meddle with libman.json yet).

Prerequisite

Have these installed on your dev machine.

  • Latest VS 2017 (Community Edition is free), select ASP.NET and web development workload - link
  • NET Core SDK - link

Step by Step

  1. Create a new ASP.NET Core Project.

  2. Select ASP.NET CORE 2.2, then select MVC web application. Leave the rest as is, then click OK.

  3. Select Project File, right click to open context menu. Click Add -> Client-Side Library

  4. A friendly Wizard Window will appear to help you install your library.

    In this case, I will add react, I will input "react" on text box and a drop down will list libraries related to text.

    I can choose provider of package and what files to install too.

  5. After hitting install, selected lib will be added to project.

    This will create libman.json and will serve as a starting point for you to get your hands dirty and make custom settings for client-side library.

External References

Updates

  • 12-11-2018: Updated image paths

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Philippines Philippines
I make art(games) for fun and write code for food.

Comments and Discussions

 
Questionand then!? Pin
ggiacomoo25-Jul-19 2:01
ggiacomoo25-Jul-19 2:01 
QuestionCant see the images Pin
Alen Toma10-Dec-18 0:16
Alen Toma10-Dec-18 0:16 
AnswerRe: Cant see the images Pin
jicking11-Dec-18 18:53
jicking11-Dec-18 18:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.