Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fonts files are not being included when publishing MVC application VS2013

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?

like image 225
sabotero Avatar asked Dec 13 '13 10:12

sabotero


1 Answers

A temporary solution,

Select your font files and Change Build action as Content from Properties Window. This fixes it in the immediate, but leaves you open to missing files in the future.

To permanently fix this issue this may help,

You can fix this permanently by modifying the default Build Action for font file extensions (.eot, .ttf, etc)

Visual-Studio-default-build-action-for-non-default-file-types

like image 115
Sakthivel Avatar answered Oct 02 '22 14:10

Sakthivel