不被列入字体文件发布时MVC应用程序VS2013 [英] Fonts files are not being included when publishing MVC application VS2013
问题描述
我已经集成(微博)自举到我的ASP.NET MVC(4)应用程序。
在我的源$ C $ C,我有以下的字体文件:
I have integrated (Twitter)Bootstrap to my ASP.NET MVC (4) application. In my source code I have the following fonts files:
当我发表我的应用程序只在 .SVG
文件被包含在这个字体
文件夹中。
When I publish my application only the .svg
file are being included in this fonts
folder.
我也有这个 IMG
文件夹被引导的一部分:
I have also this img
folder being part of bootstrap:
所有图像当我发表我的应用程序文件被包括在内。
All images files are being included when I publish my application.
所以,我怎么能得到VS2013在发布应用程序时复制这些字体文件?
So, how can I get VS2013 to copy those fonts files when publishing the application?
推荐答案
一个临时的解决方案,
选择您的字体文件,更改生成操作从属性窗口中的内容。这修复它在眼前,但让你打开在未来丢失的文件。
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,
您可以通过修改字体的文件扩展名(.eot,.TTF等)
You can fix this permanently by modifying the default Build Action for font file extensions (.eot, .ttf, etc)
<一个href=\"http://blog.andreloker.de/post/2010/07/02/Visual-Studio-default-build-action-for-non-default-file-types.aspx\">Visual-Studio-default-build-action-for-non-default-file-types
这篇关于不被列入字体文件发布时MVC应用程序VS2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!