指定配置级别的程序集绑定策略。
<配置>
<assemblyBinding>
Syntax
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- Configuration files to include. -->
</assemblyBinding>
Attribute
| Description | |
|---|---|
xmlns |
必需属性。 指定程序集绑定所需的 XML 命名空间。 使用字符串“urn:schemas-microsoft-com:asm.v1”作为值。 |
Parent 元素
| Description | |
|---|---|
| <配置> | 公共语言运行时和 .NET Framework 应用程序所使用的每个配置文件中的根元素。 |
子元素
| Description | |
|---|---|
| <linkedConfiguration> | 指定要包含的配置文件。 |
注解
<linkedConfiguration> 元素允许应用程序配置文件在已知位置中包含程序集配置文件,而不是复制程序集配置设置,从而简化了组件程序集的管理。
注释
Windows 并行清单的应用程序不支持该 <linkedConfiguration> 元素。
Example
以下示例演示如何将配置文件包含在本地硬盘上:
<configuration>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<linkedConfiguration href="file://c:\Program Files\Contoso\sharedConfig.xml" />
</assemblyBinding>
</configuration>