Innerhalb einer web.configDatei in einer ASP.NET-Anwendung unterstützen einige Abschnitte der Konfiguration, wie appSettingsund connectionStrings, die Attribute fileund configSource.
Was ist der Unterschied zwischen der Verwendung von file-attribute und configSource-attribute? Wann sollten Sie welches Attribut verwenden und können Sie beide verwenden?
<?xml version="1.0"?>
<configuration>
<appSettings file="AppSettings.config">
</appSettings>
<connectionStrings configSource="ConnectionStrings.config">
</connectionStrings>
<!-- ... -->
</configuration>