Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Font Awesome Icon not working in .NET/MVC Application

$
0
0

Kind of simple as the title says but I'm struggling with the steps. I downloaded font-awesome from Nuget Package Manager and added it to my project.

enter image description here

I also added the the font-awesome css in my bundle config file:

bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/bootstrap.css","~/Content/site.css","~/Content/font-awesome.min.css"));

Content/CSS is loaded on my main layout page, which all subsequent pages inherit from.

<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>@ViewBag.Title - My ASP.NET Application</title>    @Styles.Render("~/Content/css")    @Scripts.Render("~/bundles/modernizr")

But trying to use the icons in a button form:

<a href="@Url.Action("Edit", "Story", new { id = Model.Id })" class="btn btn-primary"><i class="fas fa-adjust"></i>                    Edit Story</a>

enter image description here

Results in nothing showing up. What am I missing in the steps?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>