<dependentAssembly> Element
Encapsulates binding policy and assembly location for each assembly. Use one dependentAssembly
element for each assembly.
<configuration>
<runtime>
<assemblyBinding>
<dependentAssembly>
Syntax
<dependentAssembly>
</dependentAssembly>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element | Description |
---|---|
assemblyIdentity |
Contains identifying information about the assembly. This element must be included in each dependentAssembly element. |
codeBase |
Specifies where the runtime can find a shared assembly if it is not installed on the computer. |
bindingRedirect |
Redirects one assembly version to another. |
publisherPolicy |
Specifies whether the runtime applies publisher policy for this assembly. |
Parent Elements
Element | Description |
---|---|
assemblyBinding |
Contains information about assembly version redirection and the locations of assemblies. |
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
runtime |
Contains information about assembly binding and garbage collection. |
Example
The following example shows how to encapsulate assembly information for two assemblies.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<!--Redirection and codeBase policy for myAssembly.-->
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="mySecondAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<!--Redirection and codeBase policy for mySecondAssembly.-->
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
See also
Sadarbojieties ar mums vietnē GitHub
Šī satura avotu var atrast vietnē GitHub, kur varat arī izveidot un pārskatīt problēmas un atgādāšanas pieprasījumus. Lai iegūtu papildinformāciju, skatiet mūsu līdzstrādnieku rokasgrāmatu.
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par