Css Windows Phone上的引导3图标
为了在Windows Phone上显示Bootstrap 3.0图标,我被迫将以下部分添加到我的Css Windows Phone上的引导3图标,css,visual-studio,windows-phone-8,twitter-bootstrap-3,Css,Visual Studio,Windows Phone 8,Twitter Bootstrap 3,为了在Windows Phone上显示Bootstrap 3.0图标,我被迫将以下部分添加到我的web.config文件中: <system.webServer> <staticContent> <mimeMap fileExtension=".woff" mimeType="font/x-woff" /> </staticContent> </system.webServer> 现在的问题是,它破坏了开发人员机器
web.config
文件中:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
</staticContent>
</system.webServer>
现在的问题是,它破坏了开发人员机器上调试模式下的开发。错误是:
500.19内部服务器错误
无法添加唯一键属性“fileExtension”设置为“.woff”的“mimeMap”类型的重复集合项
我怎样才能解决它?我正在Win 8.1上使用Visual Studio 2013
谢谢。在
Web.Release.config
文件中使用以下转换解决。这样,它只会影响生产网站:
<system.webServer xdt:Transform="Insert">
<staticContent>
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
</staticContent>
</system.webServer>
您可以查看以下内容: