1

My current WebMatrix web site is very basic - it simply shows mostly static context, photos, and contains a few links. Many things are referenced in Web.config that I don't use in this site, such as support for SqlServerCe. Should I remove those things references, for performance purposes, or does it not matter to leave them in? I don't think I'm using the OAuth stuff, either (not deliberately, anyway), and I don't know about "WebGrease," etc.

I also wonder about removing StarterSite.sdf

4

1 回答 1

2

您可以从中删除几乎所有内容。我的看起来像这样:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.web>
        <compilation targetFramework="4.5">
            <assemblies>
                <add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                <add assembly="System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                <add assembly="System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
            </assemblies>
        </compilation>
        <httpRuntime targetFramework="4.5" />
    </system.web>
</configuration>

您的程序集可能不同或遗漏。

于 2013-05-05T14:25:12.047 回答