I am not familiar with adding external packages into an ASP .NET MVC project. How can I add the FontAwesome package?
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With