Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add the FontAwesome icons to an ASP.NET MVC project? [closed]

I am not familiar with adding external packages into an ASP .NET MVC project. How can I add the FontAwesome package?

like image 270
Miguel Barra Avatar asked Oct 30 '25 05:10

Miguel Barra


1 Answers

The easiest way is to use a nuget package. There are a dozen packages listed. The package I recommend is FontAwesome.MVC by JiveCode aka JustLikeIcarus. NOTE: as of 2020-09-16 the package lists in NuGet as 'by Dave Gandy'.

This package takes a dependency on the Font Awesome package containing the CSS and fonts, then it adds a class (FontAwesomeBundleConfig) that registers a style bundle for you.

All that’s left to do is to modify your _Layout, adding the following line of code to your HEAD:

@Styles.Render("~/Content/fontawesome")
like image 151
Tarik Tutuncu Avatar answered Nov 01 '25 19:11

Tarik Tutuncu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!