问题
I found this but I don't have an angular cli file so I tried to install with npm
and then add it with import
statement in my wwwroot/css/style.css
file but that didn't work either.
EDIT: My project is an Angular 4 App With Asp.Net Core 2.0 Web API so the suggested tutorial was unable to resolve the issue.
回答1:
How to add font awesome to ASP.NET Core Angular 2 application in Visual Studio 2017 with SpaTemplates I reread the article and found that I missed something. I resolved the issue.
来源:https://stackoverflow.com/questions/47455594/how-to-add-font-awesome-to-a-net-core-2-spa-with-angular-4-project