Fonts files are not being included when publishing MVC application VS2013

Viewed 9056

I have integrated (Twitter)Bootstrap to my ASP.NET MVC (4) application. In my source code I have the following fonts files:

Fonts Files

When I publish my application only the .svg file are being included in this fonts folder.

I have also this img folder being part of bootstrap:

Images

All images files are being included when I publish my application.

So, how can I get VS2013 to copy those fonts files when publishing the application?

3 Answers

In my case I was deploying to azure and below modification in the web.config fixed my problem.

<configuration>
<system.webServer>
    <staticContent>
        <mimeMap fileExtension="woff" mimeType="application/font-woff" />
        <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
     </staticContent>
</system.webServer>

Refer this link

Related