I am struggling to find any up to date installation guide for installing Font Awesome in ASP.NET Core 2.2
I've tried a manual file import to the project folder directory, then tried the NuGet package route but nothing works because all the guides I follow make reference to steps and folders/files that don't exist in 2.2
Being new to ASP.NET Core is likely not helping the situation :(
You can try this approach using LibMan
Then include everything into your project just like default template include bootstrap and jquery
There are many ways to accomplish this, however in my opinion the easiest way to get up and running quickly is A.
A: Get a CDN hosted version of font awesome (it's free!)
B: One time 'install'
wwwroot/lib/
Note:
abcdef1234.js
is not a real file, you'll get your specific file in the email when you sign up for the CDN packageNote: The CDN version does not have a CSS file you need to add, it's wrapped up in the JS file.
Finally
If you do need more packages than what is included with the ASP.NET Core and font awesome, I would highly recommend using moving to getting your libs through a package manager like @Tony Ngo pointed out, and
LibMan
is as good as any to start with.Just wanted to explicitly list the steps that has been described by other answers here.
Using Visual Studio 2019 (16.3.8) with 'ASP.NET Core Web Application' project targeting .NET Core 3.0 I did the following to install Font-Awesome on the client side:
<link rel="stylesheet" href="~/lib/font-awesome/css/all.min.css" />