Reputation: 657
I am trying to publish a web site, in which css directory includes different files for font settings.
Following are the file & extensions:
calibri-webfont.eot
calibri-webfont.svg
calibri-webfont.ttf
calibri-webfont.woff
calibri-webfont.oft
Now when I try to publish website, it just publishes .svg file,other files I need to copy manually. Whiles publishing following options I have checked:
Expected: as all those files are required, I want those to be get published automatically, than manually coping those.
How this can be achieved?
Upvotes: 5
Views: 2711
Reputation: 65
file properties by right clicking, then make sure the Build Action property is set to "Content".
Works fine
Upvotes: 0
Reputation: 9610
I know you asked this a very long time ago, but today it ranks high on Google and I've just had the same problem. Today's fix was that Azure does not have MIME types configured for several font file formats. This must be added to web.config otherwise Azure simply returns a 404 error (even though the files are actually published).
<system.webServer>
<staticContent>
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
</staticContent>
</system.webServer>
Source: http://www.codepal.co.uk/show/WOFF_files_return_404_in_Azure_Web_Sites
Upvotes: 7
Reputation: 19797
If your files are not included in the project (just in the file structure), in visual studio click the Show All Files Icon in the solution Explorer (looks like 3 pages). Right Click on the files and select "Include in Project"
Access the file properties by right clicking, then make sure the Build Action property is set to "Content".
Upvotes: 3